CentOs6 web server 安装记录

 vim /etc/sysconfig/i18n LANG="en_US.UTF-8"
 
/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/httpd restart
/etc/rc.d/init.d/iptables stop
 
也可以这样/etc/rc.d/init.d/httpd start;/etc/rc.d/init.d/httpd restart;/etc/rc.d/init.d/iptables stop
进入 vim /var/www/html/index.php
 
yum -y install gcc make nc libevent autoconf telnet
yum -y install gcc make nc
yum -y install libevent autoconf telnet
 
 
yum -y install mysql-server php-mysql
chkconfig mysqld on
/etc/rc.d/init.d/mysqld start
chkconfig --list mysqld
 
mysql -uroot
set password for root@localhost=password("root");
select user,host,password from mysql.user;
exit
mysql -uroot -proot
exit
 
yum -y install memcached
chkconfig memcached on
/etc/rc.d/init.d/memcached start
chkconfig --list memcached
 
yum provides */memcache.so
yum -y install php-pecl-memcache
/etc/rc.d/init.d/httpd restart