openresty相关,


学习相关内容来自

https://moonbingbing.gitbooks.io/openresty-best-practices/content/openresty/install_on_ubuntu.html

记录一下基本命令:

一般最好使用自己创建的配置项: 在指定目录创建 例如:

mkdir ~/openresty-test ~/openresty-test/logs/ ~/openresty-test/conf/

然后使用命令  nginx -p ~/openresty-test启动nginx

ps -ef | grep nginx 查看进程是否存在

//以新配置文件重启

sudo /usr/local/openresty/nginx/sbin/nginx -s reload -c ~/or/conf/nginx.conf

转载于:https://www.jianshu.com/p/5bfafade2ae2

相关内容

    暂无相关文章