文档介绍:wget ./CentOS-
yum install ntp
ntpdate
yum -y install make openssl openssl-devel pcre pcre-devel libpng libpng-devel libjpeg-6b libjpeg-devel-6b freetype freetype-devel gd gd-devel zlib zlib-devel gcc gcc-c++ libXpm libXpm-devel ncurses ncurses-devel libmcrypt libmcrypt-devel libxml2 libxml2-devel imake autoconf automake libtool-ltdl libtool-ltdl-devel
groupadd www
useradd -g
./configure --prefix=/usr/local/nginx --with-http_gzip_static_module --user=nginx --group=nginx --with-http_stub_status_module --with-http_realip_module --without-select_module --without-poll_module --http-log-path=/var/log/nginx/access_log --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx
make && make install
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/
server {
listen 80;
#listen somename:8080;
server_name ;
location / {
root /var/ ;
index ;
}
location ~ \.php$ {
fastcgi_pass :9000;
fastcgi_index ;
fastcgi_param SCRIPT_FILENAME /var//$fastcgi_script_name;
include fastcgi_params;
}
}
=========================================================================================================
yum -y install mysql-server mysql-devel php-mysql
/etc/ restart
mysqladmin -u root -p password 123456 °ÑÊý¾Ý¿âÃÜÂëÐ޸ijÉ123456
chkconfig --add mysqld
chkc