MacBook安装Nginx

盛年不重来,一日难再晨,及时当勉励,岁月不待人。这篇文章主要讲述MacBook安装Nginx相关的知识,希望能为你提供帮助。
MacBook安装nginx

brew search nginx//搜索软件 查询要安装的软件是否存在brew install nginx 安装nginxbrewuninstall nginx 卸载nginxbrew services start nginx 启动nginx服务brew services stop nginx 关闭nginx服务brew info nginx 查看安装信息(经常用到, 比如查看安装目录等)brew list 查看已经安装的软件brew update 升级brewnginx -v 查看版本nginx -V 查看版本,以及配置文件地址sudo nginx启动nginx nginx -s reload 重新加载nginxsudo nginx -s stop停止nginx

浏览器访问 http://127.0.0.1:8080/ 会显示
Welcome to nginx!
【MacBook安装Nginx】参考链接:
https://blog.csdn.net/qq_28867949/article/details/79212485

    推荐阅读