zhuangjinxin / blog

:notebook: 个人博客 技术分享 整理笔记
http://blog.zhuangjinxin.top
7 stars 0 forks source link

在Ubuntu14.04中安装配置Nginx #6

Open zhuangjinxin opened 7 years ago

zhuangjinxin commented 7 years ago

在Ubuntu14.04上安装Nginx:

1.下载并安装key

2. 添加apt-get源

deb http://nginx.org/packages/ubuntu/ trusty nginx
deb-src http://nginx.org/packages/ubuntu/ trusty nginx

追加到/etc/apt/sources.list文件尾部

3.下载安装nginx

apt-get update
apt-get install nginx

安装成功!

zhuangjinxin commented 6 years ago

卸载:sudo apt-get --purge remove nginx

zhuangjinxin commented 6 years ago

root@iZ28wc4td77Z:/usr/sbin# ./nginx -s reload nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)