|| what is nginx
please take alook this
|| how to install nginx on linux centos
|
1 |
# yum install nginx php-xcache php-fpm |
|| setup nginx
|
1 |
# vi /etc/nginx/nginx.conf |
add / uncomment this line:
|
1 2 3 4 5 6 |
location ~ \. php $ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
} |
|| starting nginx httpd and php-fpm
|
1 2 |
# /etc/init.d/php-fpm start
# /etc/init.d/nginx start |
|| checking nginx httpd (80) and php-fpm (9000) ports
|
1 2 3 4 5 |
# netstat -tlupn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 9537/php-cgi
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 23285/nginx: master |
|| links
| taujago
wew…mantaps…
your emphaty is great brader…ijin mencoba
monkgo”..