http://my.oschina.net/VincentJiang/blog/224993php
4.2 安裝mysql yum install mysql mysql-server mysql-devel 一樣,完成後,用/etc/init.d/mysqld start 啓動mysqlhtml
配置mysql開機啓動服務 #chkconfig --add mysqld (在服務清單中添加mysql服務) #chkconfig mysqld on (設置mysql服務隨開機啓動) #service mysqld start (啓動mysql服務)mysql
4.3 設置mysql密碼 mysql>; USE mysql; mysql>; UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root'; mysql>; FLUSH PRIVILEGES;redis
yum install -y php php-fpm php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xmlsql
防火牆配置 a.添加.容許訪問端口{80: http}. -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT b.關閉防火牆{不推薦}. service iptables stop c.重置加載防火牆 service iptables restarttcp
http://www.cnblogs.com/super-d2/p/3819385.html redis安裝php-fpm