美文网首页ios 开发之没事来看看
Linux03 - serverlet(Apache,nginx

Linux03 - serverlet(Apache,nginx

作者: 等这姑娘老在我心里 | 来源:发表于2020-08-31 12:47 被阅读0次

1. Apache

Apache 默认路径

/Library/WebServer/Documents

关闭Apache

➜  ~ sudo apachectl -k stop

2. nginx

安装nginx

brew install nginx

nginx 配置文件地址

/usr/local/etc/nginx

测试nginx 配置文件

nginx -t

重载nginx 配置

nginx -s reload

开启nginx

brew services nginx start

关闭nginx

brew services nginx stop

重启nginx

brew services nginx restart

相关文章

网友评论

    本文标题:Linux03 - serverlet(Apache,nginx

    本文链接:https://www.haomeiwen.com/subject/tdplsktx.html