ubuntu 上安装Nginx1.9.*

1. 在源中添加资源nginx

在/etc/apt/sources.lst中 添加下面两源:shell

Add the following lines in /etc/apt/sources.lstubuntu

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

2.  添加key到文件中服务器

 From your server download the signing key add it to the apt program keyring with the following commands:spa

cd /etc/apt
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key

3. 安装nginx.net

Install NginX:code

apt-get update
apt-get install nginx

4. 检查安装是否成功server

Verify its version:blog

/usr/sbin/nginx -V

下一篇资源

使用nginx搭建简单的文件服务器

相关文章
相关标签/搜索