0%

CentOs6 web server 安装记录

CentOs6 web server 安装记录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!