分享

Nginx

 python_diango 2012-10-09

CentOS:

[nginx]
name=nginx repo
baseurl=http:///packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

RHEL:

[nginx]
name=nginx repo
baseurl=http:///packages/rhel/$releasever/$basearch/
gpgcheck=0
enabled=1

Ubuntu 10.04:

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

Debian 6:

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

For Ubuntu 10.04 and newer:

sudo -s
nginx=stable # use nginx=development for latest development version
add-apt-repository ppa:nginx/$nginx
apt-get update 
apt-get install nginx

If you get an error about add-apt-repository not existing, you will want to install python-software-properties. For other Debian/Ubuntu based distributions, you can try the lucid variant of the PPA which is the most likely to work on older package sets.

sudo -s
nginx=stable # use nginx=development for latest development version
echo "deb http://ppa./nginx/$nginx/ubuntu lucid main" > /etc/apt/sources.list.d/nginx-$nginx-lucid.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update 
apt-get install nginx

Building Nginx From Source

After extracting the source, run these commands from a terminal:

./configure
make
sudo make install

By default, Nginx will be installed in /usr/local/nginx. You may change this and other options with the compile-time options.

You might also want to peruse the catalog of third-party modules, since these must be built at compile-time.



    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多