lxq.link

macOS安装使用nginx

ON THIS PAGE

安装:

$ brew install nginx

查看安装信息:

$ brew info nginx

start nginx and restart at login:

$ brew services start nginx

关闭nginx服务:

$ brew services stop nginx

if don't want/need a background service just run:

$ nginx

重新加载nginx

$ nginx -s reload

停止nginx

$ nginx -s stop

打开默认服务器文件路径:

$ open /usr/local/var/www

修改nginx配置文件:

$ cd /usr/local/etc/nginx
$ nano nginx.conf
2020-07-24
上一篇:JS的数组复制,实现浅拷贝和深拷贝
下一篇:H5 在全面屏 IOS 的适配