服务器重启

虽然说碰壁能涨经验,不过搞的几个小时心里忐忑是真的难受。每一秒都是煎熬。

启动Nginx服务

./nginx -c /usr/local/nginx/nginx/conf/nginx.conf

说明:

● 其中/usr/local/nginx/nginx/conf/nginx.conf是你自己的nginx.conf路径。

● -c参数指定了要加载的nginx配置文件路径。

--查看当前服务器所有服务

service --status-all

-- 查看当前所有正在运行的服务

service --status-all | grep running

--查看指定服务运行状态如 httpd

service --status-all | grep httpd

或 service httpd status

--查看系统启动自启动的服务列表

chkconfig --list

--centos7版本

--查看正在运行的服务

systemctl | grep running

--列出运行的服务

initctl list

--查看指定服务运行状态

systemctl | grep apache2

--查看正在运行的服务

pstree

--查看正在运行的状态

chkservice --是一个管理系统单元的终端工具

https://www.cnblogs.com/gcixx/p/11145436.html

安全组、快照、fstab文件详解

原文地址:https://www.cnblogs.com/chenliuxiao/p/12558590.html