简体   繁体   English

Botman studio 2.0 在 Ubuntu 服务器上不起作用

[英]Botman studio 2.0 don't work in Ubuntu server

Does anyone try on Botman studio 2.0 with Ubuntu server 16.0?有没有人在 Ubuntu 服务器 16.0 上尝试过 Botman studio 2.0? I tried it for telegram chatbot but it didn't work.我尝试将其用于电报聊天机器人,但没有奏效。

I can download the botman studio and driver without any error.我可以毫无错误地下载 botman studio 和驱动程序。

When I try to use php artisan serve , I can see Laravel development server started: http://127.0.0.1:8000 but accessing this local URL gives 404 error.当我尝试使用php artisan serve 时,我可以看到Laravel 开发服务器已启动: http : //127.0.0.1 :8000但访问此本地 URL 会出现 404 错误。

I also tried to follow the steps on this link-我也尝试按照此链接上的步骤进行操作-

https://botman.io/2.0/driver-telegram https://botman.io/2.0/driver-telegram

Everything is installed and configured without any error yet it does not work.一切都安装和配置没有任何错误,但它不起作用。

Please check the screen capture below.请检查下面的屏幕截图。

Screenshot截屏

You are editing the code by FTP.您正在通过 FTP 编辑代码。

I can guess your code is on remote server instead of local server.我猜你的代码是在远程服务器上而不是本地服务器上。

And 127.0.0.1 is for local. 127.0.0.1 是本地的。

Try to use the IP of remote server instead of 127.0.0.1 for correct access.尝试使用远程服务器的 IP 而不是 127.0.0.1 进行正确访问。

Just like what you do when using FTP就像您在使用 FTP 时所做的一样

The IP address 127.0.0.1 is a special-purpose IPv4 address called localhost or loopback address. 

All computers use this address as their own but it doesn't let them communicate with other devices like a real IP address does.

尝试使用类似ngrok 的东西来获取公共 URL,这将解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM