nginx 支持yum 和 apt-get install的安装方式了,Happy啊。

http://nginx.org/en/download.html



Source Repository

Pre-Built Packages

For automatic updates of the pre-built Linux packages it is possible to configure the yum repository for RHEL/CentOS, or the apt repository for Debian/Ubuntu.

To set up the yum repository for the RHEL/CentOS, pick up and install the correspondingnginx-releasepackage from the list below, containing the yum config and the public key necessary to check signed RPMs:

Then run the following command:

yum install nginx

As an alternative, a repository config can be added manually. Create the file named/etc/yum.repos.d/nginx.repowith the following contents:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1

Replace “OS” with “rhel” or “centos”, depending on the distribution used, and “OSRELEASE” with “5” or “6”, for 5.x or 6.x versions, respectively.

For Debian 6 append the following contents to/etc/apt/sources.list:

deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx

Then run the following commands:

apt-get update
apt-get install nginx

For Ubuntu 10.04 append the following contents to/etc/apt/sources.list:

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

Then run the following commands:

apt-get update
apt-get install nginx


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值