启动nginx

cd 到 nginx的sbin目录下

我的路径为 : 

cd /usr/local/nginx/nginx-1.10.0/sbin

 

执行 

./nginx -c /配置文件目录/nginx.conf

 

我的配置文件路径:

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

 

查看是否启动成功:

ps -ef | grep nginx

 

posted @ 2021-06-16 18:18  JAVA小白逛园子  阅读(111)  评论(0)    收藏  举报