Heim  >  Artikel  >  Backend-Entwicklung  >  linux nginx轻量级服务器 - 安装篇

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

WBOY
WBOYOriginal
2016-08-08 09:31:13882Durchsuche

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!

以上就介绍了linux nginx轻量级服务器 - 安装篇,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn