文章会有【原创】或者【转载】标示,部分来自Google Baidu的学习结果 {Java/PHP/Python/Ruby/Go}

LAMP在Windows、Linux搭建【学习】  


端口号
mysql    3306
memcache 11211
straing  22122
redis    6379
mongodb  27017

Linux:Ubuntu(libapache2-mod-php5 Apache-PHP)
apt-get install nginx php5-common php5-fpm php-apc php5-mysql php5-gd mysql-server php5-dev


sudo vi /etc/nginx/sites-enabled/default
location ~ \.php$ {
   fastcgi_pass  127.0.0.1:9000;
   fastcgi_index  index.php;
   fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-default$fastcgi_script_name;
   include  fastcgi_params;
}
location ~ \.php$ {  
   fastcgi_pass   127.0.0.1:9000;  
   fastcgi_index  index.php;  
   fastcgi_param  SCRIPT_FILENAME /var/www/nginx-default$fastcgi_script_name;  
   include /etc/nginx/fastcgi_params;
}

spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u www-data -f /usr/bin/php-cgi

/etc/init.d/apache2 restart
/etc/php5/apache2/php.ini
/etc/apache2/apache2.conf

sudo vi /etc/nginx/nginx.conf //修改配置
sudo vi /etc/nginx/sites-enabled/default //修改配置
sudo service nginx restart //重启nginx

sudo vi /etc/php5/fpm/php.ini //修改配置
sudo service php5-fpm restart //重启fastcgi进程

http://forum.ubuntu.org.cn/viewtopic.php?t=241301

yum -y update
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml libmcrypt
yum install mysql mysql-server
yum install httpd

/etc/init.d/httpd start
http://www.17bob.com/?p=201
http://www.chinaz.com/web/2011/0801/202685.shtml


Windows:
XAMPP:http://www.apachefriends.org/en/xampp-windows.html#641
WAMP: