安装Nginx
创建随系统自启动:
yum install nginx
创建随系统自启动:
chkconfig --levels 235 nginx on
/etc/init.d/nginx start
安装PHP:
yum install php-fpm php-cli php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy
chkconfig --levels 235 php-fpm on
/etc/init.d/php-fpm start
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}