UBUNTU下NGINX,PHP-FPM,MYSQL,REDIS安装指导
Ubuntu (11.10) 下Nginx, PHP FPM, MySQL, Redis安装指导 1, 通过apt-get快速安装nginx, mysql server, php5-fpm, php-mysql, php-apc sudo apt-get install nginx mysql-server php5-mysql php5-fpm php-apc 创建nginx访问根目录,比如 /home/alex/data/www cd ~ mkdir -p data/www/ sudo vi /etc/nginx/sites-avaible/default ; 加入以下配置 20 server { 21 listen 80; 22 server_name localhost; 23 root /home/alex/data/www; 24 location / { 25 index index.html index.php; 26 } 27 location ~ \.php$ { 28 fastcgi_pass 127.0.0.1:9000; 29 fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name; 30 include fastcgi_params; 31 } 32 } 2, 取消Nginx, PHP