安装nging,php

时间:2024-05-26 15:07:32

http://www.zihou.me/html/2010/11/14/2658.html

http://www.linuxidc.com/Linux/2011-04/34964p4.htm

http://www.cnblogs.com/jsckdao/archive/2011/05/05/2038265.html

1.下载 pcre-8.10.tar.gz (http://sourceforge.net/projects/pcre/files/pcre/)

#unzip pcre-8.10.zip

#cd pcre-8.10

#./configure

#make && make install

2.下载nginx

# cd   nginx-1.1.1

#  ./configure --prefix=/usr/local/nginx --with-http_stub_status_module

# make && make install

检查是否安装成功

cd  /usr/local/nginx/sbin

./nginx -t

结果显示:

nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok

nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

启动nginx

cd  /usr/local/nginx/sbin 目录下面 输入 ./nginx 启动 nginx

检查是否启动成功

ie 浏览器中输入 http://192.168.15.132