创建实例,镜像启动后自动运行
方法一: 请在本地电脑上直接使用命令行(如cmd)通过ssh进行代理转发,输入命令:
ssh -L 7865:127.0.0.1:7865 -L 7866:127.0.0.1:7866 -p 23 root@你的实例IP
这里需要代理2个端口服务分别是7865,7866
如打开命令行:
ssh -L 7865:127.0.0.1:7865 -L 7866:127.0.0.1:7866 -p 23 root@117.50.186.26
回车,输入云电脑实例密码即可运行,命令行不要关闭。
浏览器打开网页http://127.0.0.1:7865
方法二: 使用专门代理工具快速访问,下载并使用工具,请查看教程:https://www.yuque.com/siyerai/xok5im/tor8y870m6loubwk?singleDoc#
在命令行窗口可查看 api_gsv3 dman_service startfp startcf startsys
1.查看服务运行:supervisorctl status
api_gsv3 RUNNING pid 728, uptime 3:28:06
dman_service RUNNING pid 29, uptime 3:37:50
startfp RUNNING pid 3369, uptime 0:03:01
startcf RUNNING pid 3462, uptime 0:00:06
startsys RUNNING pid 3473, uptime 0:00:05
2.重启某一个服务:
supervisorctl restart startsys
supervisorctl restart startcf
supervisorctl restart startfp
supervisorctl restart dman_service
supervisorctl restart api_gsv3
3.关闭某一个服务:
supervisorctl stop startsys
supervisorctl stop startcf
supervisorctl stop startfp
supervisorctl stop dman_service
supervisorctl stop api_gsv3
4.查看日志:
cd /var/log