ubuntu下使用apt方式安装、卸载nginx
2015-10-09 12:20
567 查看
ubuntu和debain下的apt方式安装软件很方便,特别是对于新手安装和卸载nginx。
由于nginx不能动态添加模块,所以会经常安装和卸载、升级。
apt安装nginx方法
sudo apt-add-repository ppa:nginx/development
sudo apt-get update
sudo apt-get install nginx
apt卸载nginx方法
卸载方法1.
# 删除nginx,保留配置文件
sudo apt-get remove nginx
#删除配置文件
rm -rf /etc/nginx
卸载方法2.
#删除nginx连带配置文件
sudo apt-get purge nginx # Removes everything.
#卸载不再需要的nginx依赖程序
sudo apt-get autoremove
由于nginx不能动态添加模块,所以会经常安装和卸载、升级。
apt安装nginx方法
sudo apt-add-repository ppa:nginx/development
sudo apt-get update
sudo apt-get install nginx
apt卸载nginx方法
卸载方法1.
# 删除nginx,保留配置文件
sudo apt-get remove nginx
#删除配置文件
rm -rf /etc/nginx
卸载方法2.
#删除nginx连带配置文件
sudo apt-get purge nginx # Removes everything.
#卸载不再需要的nginx依赖程序
sudo apt-get autoremove
相关文章推荐
- nginx、fastCGI、php-fpm关系梳理(转)
- CentOS 下安装Nginx
- nginx 安装sticky遇到的问题
- 搭建Nginx+Java环境
- Nginx/LVS/HAProxy负载均衡软件的优缺点详解
- Nginx 四种分配方式
- Nginx基本配置、性能优化指南
- 用nginx图片缓存服务器
- nginx重新加载配置
- Nginx介绍及企业web服务软件选择
- nginx配置location总结及rewrite规则写法
- nginx location匹配规则
- nginx配置详解、端口重定向和504
- Nginx模块开发入门
- nginx: 模块配置指令
- 在Ubuntu中使用apt-get安装nginx
- 使用nginx做负载均衡造成的session共享问题
- Nginx、PCRE和中文URL(UTF8编码)rewrite路径重写匹配问题
- Nginx 使用中文URL,中文目录路径
- 再谈Nginx Rewrite, 中文URL和其它