Loading cart contents...
Linux服务器的维护
当前有两个代码需要开机自动启动
服务器上有两个服务
关掉所有服务
killall screen
服务一
screen -S run_api /home/wwwroot/run.app.zhaisoft.com/api/api
服务二
screen -S frp /root/frp/frps -c /root/frp/frps.ini
Rdp客户端需要执行命令
Nginx reload 错误
nginx -s reload
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)
执行以下程序
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
终端退出screen的方法
ctrl+A+D
SSH 保持连接不中断
ssh -o ServerAliveInterval=30 root@www.zhaisoft.com