ECS服务器停止之后,如何启动?
1.启动nginx
ps -ef | grep nginx
显示root 6837 6776 0 09:33 pts/0 00:00:00 grep --color=auto nginx 表示nginx没有启动
nginx -c /etc/nginx/nginx.conf 启动程序
root 6858 1 0 09:34 ? 00:00:00 nginx: master process nginx -c /etc/nginx/nginx.conf
root 6859 6858 0 09:34 ? 00:00:00 nginx: worker process
root 6860 6858 0 09:34 ? 00:00:00 nginx: worker process
root 6862 6776 0 09:34 pts/0 00:00:00 grep --color=auto nginx
2.启用redis
redis安装目录下,./redis-server 启动redis的服务器。
redis-cli ping
3.启用应用程序
cd back 打开程序的路径
启动tomcat 程序
sh bin/startup.sh
查看日志:tail -100f logs/catalina.out