Rasa.ui 安装运行

4 篇文章 0 订阅
4 篇文章 0 订阅

首先下载rasaui

git clone https://github.com/paschmann/rasaui.git

 cd rasaui

进行npm install

如果npm没有安装,那么执行 yum install npm

安装后,进行运行,运行中需要docker,如果没有安装docker,那么执行yum install docker

用docker运行rasaui

docker run -e "rasanluendpoint=http://yourserverip:5000" -e "rasacoreendpoint=http://yourserverip:5005" -itd -p 5001:5001 rasa-ui

可能出现的错误是:

1,没有启动docker,那么启动docker

/bin/systemctl restart docker.service

ps -aux | grep docker

root     12765  0.5  0.0 615132 25560 ?        Ssl  11:18   0:00 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json --selinux-enabled --log-driver=journald --signature-verification=false --storage-driver overlay2
root     12776  0.2  0.0 364256  7484 ?        Ssl  11:18   0:00 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim docker-containerd-shim --runtime docker-runc --runtime-args --systemd-cgroup=true
root     12957  0.0  0.0 112704   964 pts/0    R+   11:19   0:00 grep --color=auto docker

确定启动完成。。

2,does not exist or no pull access

docker run -e "rasanluendpoint=http://yourserverip:5000" -e "rasacoreendpoint=http://yourserverip:5005" -itd -p 5001:5001 rasa-ui

出现了下面的错误:

Unable to find image 'rasa-ui:latest' locally
Trying to pull repository docker.io/library/rasa-ui ... 

/usr/bin/docker-current: repository docker.io/rasa-ui not found: does not exist or no pull access.
See '/usr/bin/docker-current run --help'.

这个错误是docker的运行错误

原来没有执行docker build 这个指令

docker build -t rasa-ui .

注意这个" . " 是必要的。。。。否则还是出错。这个就是对docker指令的熟悉程度了:>>>>>>>>

 

这里要注意:

rasa-ui的启动会指向rasa-nlu和rasa-core的两个服务,这两个服务不指定,ui是无法使用的

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值