本文共 420 字,大约阅读时间需要 1 分钟。
服务器1有apache服务,现在需要在服务器2也安装一个:
1.打包服务器1的apache 并传输服务器2
cd /usr/local/
tar cvf apache.tar apache
scp apache.tar 服务器2:/usr/local/
2.传输/etc/rc.d/init.d/apache导服务器2
scp apache 服务器2:/etc/rc.d/initd./
3.服务器2解压tar包并增加服务
cd /usr/local/
tar -xvf apache.tar
chkconfig --add apache
chkconfig apache on chkconfig --list|grep apache修改conf/httpd.conf的监听地址为服务器2的IP
启动:service apache start
4.检查监听端口
netstat -tunlp|grep httpd|grep LISTEN
转载地址:http://qisof.baihongyu.com/