ubuntu下安装NGINX和PHP
dbcz0787
9年前
来自: http://my.oschina.net/dingdayu/blog/614891
一、安装nginx
1.1 、下载密钥
wget http://nginx.org/keys/nginx_signing.key
1.2 、添加秘钥
sudo apt-key add nginx_signing.key
1.3 、加入nginx的repository
cd /etc/apt/sources.list.d/ sudo vim nginx.list
1.3.1 、若安装稳定版本,则输入以下内容
deb http://nginx.org/packages/ubuntu/ trusty nginx deb-src http://nginx.org/packages/ubuntu/ trusty nginx
1.3.2 、若最新版本,则输入以下内容:
deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx deb-src http://nginx.org/packages/mainline/ubuntu/ trusty nginx
1.4 、 安装
apt-get update apt-get install nginx
1.5 、 检验
nginx -v nginx version: nginx/1.9.11
附:
php编译说明:http://my.oschina.net/u/1438722/blog/335350