yum命令安装apm
建议先关闭防火墙:
方法一(重启后永久性生效):
开启:chkconfig iptables on
关闭:chkconfig iptables off
即时生效,重启后失效:
开启:service iptables start
关闭:service iptables stop
安装apache:======================
yum install httpd
设置随系统启动:
chkconfig –levels 235 httpd on
配置完毕,启动apache:
/etc/init.d/httpd start
安装php:=================
yum install php
重新启动apache服务
/etc/init.d/httpd restart
安装mysql:================
yum -y install mysql-server
设置开机启动:
chkconfig mysqld on
启动mysql服务:
service mysqld start
设置root密码(默认是空的):
mysql -u root -p
root
()
mysql>set password for root@localhost=password(‘root’)
>\r
mysql>set password for root@localhost=password(‘root’);
SVN的方式:
默认centos 6.x /7.x 没有安装svn客户端:
如何安装?
yum install svn
svn checkout svn://192.168.8.3 svn co /www/wwwroot/192.168.8.6/