Nginx啟動啟動停止重啟
## Nginx啟動停止重啟 ##
### nginx快捷操作配置
1. 編輯配置檔案
[[email protected] ~]# vim /etc/profile
2. 新增配置
export NGINX_HOME=/usr/local/nginxtest
export PATH=$NGINX_HOME/sbin:$PATH
3. 使配置生效
[[email protected] ~]# source /etc/profile
4. 測試配置是否成功
[[email protected] ~]# nginx -t
nginx: the configuration file /usr/local/nginxtest/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginxtest/conf/nginx.conf test is successful
[