Mac下卸载Nginx服务器
来源:互联网 发布:淘宝图片推荐几款相机 编辑:程序博客网 时间:2024/06/06 09:50
Mac下卸载Nginx服务器
Mac 下使用brew卸载Nginx软件时配置文件和www目录是不会被删除的,有时候需要权限的配置环境作为测试,开发调试的时候不断的修修改改,导致对一下配置没有比较性,
1.使用brew info ngnix查看nginx安装是安装文件的地方,这里我们关心两个地方,一个是www目录,另外一个则是配置目录/etc/nginx
➜ etc brew info nginxnginx: stable 1.12.1 (bottled), devel 1.13.5, HEADHTTP(S) server and reverse proxy, and IMAP/POP3 proxy serverhttps://nginx.org//usr/local/Cellar/nginx/1.12.1 (23 files, 1MB) * Poured from bottle on 2017-09-12 at 09:28:44From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/nginx.rbDocroot is: /usr/local/var/wwwThe default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so thatnginx can run without sudo.nginx will load all files in /usr/local/etc/nginx/servers/.
同上面的信息能够很清楚的知道Nginx相关的配置文件的信息使用brew uninstall nginx卸载nginx,此时目录服务器上还留有nginx相关的文件,我们需要手动删除www、etc目录
删除配置文件:
/usr/local/etc/nginx 目录
/usr/local/var/www 注意目录下你自己的源代码是否还在上面
阅读全文
1 0
- Mac下卸载Nginx服务器
- Mac下配置Nginx服务器
- MAC下 nginx搭建https服务器
- MAC下 nginx搭建https服务器
- Mac下Django+gunicorn+Nginx服务器部署
- MAC下 nginx搭建https服务器
- Mac下搭建nginx http点播服务器
- 服务器-Nginx-Mac OS X 下编译安装 Nginx
- mac下卸载mysql
- Mac下卸载 Idea15
- mac下卸载Git
- mac下卸载mysql
- mac下卸载mysql
- MAC 下卸载 JAVA
- MAC下卸载MySQL
- mac下卸载软件
- mac下卸载mysql
- mac下卸载Qt5
- 约束优化方法之拉格朗日乘子法与KKT条件
- ubuntu17.04将左侧启动栏/任务栏,放到桌面底部
- SpringBoot(四):与dobbo的整合(注解形式与xml形式)
- (lintcode)第29题交叉字符串
- JVM垃圾回收策略和垃圾收集器
- Mac下卸载Nginx服务器
- 伪类和伪元素的区别(结论)
- 最大递增序列之和
- ViewPager 的用法详解
- css选择器
- matter.js学习笔记(六)--Composites.softBody()制造布料或球网
- js获取方法的返回值
- Failed to resolve: com.android.support:appcompat-v7:26.0.0
- python中的数组类型及特点