linux nginx轻量级服务器 - 安装篇

来源:互联网 发布:淘宝发布话费充值 编辑:程序博客网 时间:2024/05/19 07:10

linux 下安装nginx:


1. 安装 gcc / g++

# apt-get  install build-essential

已安装的无视

2. 安装openssl:

# apt-get  install openssl

# apt-get  install libssl-dev

3. 安装pcre

下载源码:http://download.csdn.net/detail/wei_xiaox126/8304511

解压: tar xvf  ....

# ./configure

# make && make install

4. 官网下载 nginx 源码包   http://nginx.org/

    nginx-1.6.1  本地下载:http://download.csdn.net/detail/wei_xiaox126/8304547

5. 安装nginx

 # tar xvf ...

# ./configure --prefix='your  path'

# make && make install

6. 验证

# cd 'your path/sbin'

# ./nginx

打开网页,输入 192.168.1.111(这是我的ip)

会显示welcom to nginx!






0 0