博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
apache2.2.4快速安装
阅读量:2042 次
发布时间:2019-04-28

本文共 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/

你可能感兴趣的文章
(PAT 1102) Invert a Binary Tree(反转二叉树+寻找二叉树的根结点)
查看>>
(PAT 1015) Reversible Primes (进制转换+判断素数)
查看>>
(PAT 1110) Complete Binary Tree (判断完全二叉树)
查看>>
(PAT 1105) Spiral Matrix (WQNMD坑爹模拟题系列)
查看>>
(PAT 1021) Deepest Root (广度优先遍历求层数)
查看>>
(PAT 1134) Vertex Cover (图中边和顶点的关系)
查看>>
(重要)1133 Splitting A Linked List (怎样把一条链表拆成若干条新链表然后相连)
查看>>
(模板 重要)Tarjan算法解决LCA问题(PAT 1151 LCA in a Binary Tree)
查看>>
(PAT 1125) Chain the Ropes (贪心+优先级队列的应用)
查看>>
1013 Battle Over Cities (DFS+连同分量)
查看>>
(PAT 1154) Vertex Coloring (图的广度优先遍历)
查看>>
(PAT 1115) Counting Nodes in a BST (二叉查找树-统计指定层元素个数)
查看>>
(PAT 1143) Lowest Common Ancestor (二叉查找树的LCA)
查看>>
(PAT 1061) Dating (字符串处理)
查看>>
(PAT 1079) Total Sales of Supply Chain (树的深度优先遍历)
查看>>
(PAT 1004) Counting Leaves (树的广度优先)
查看>>
1034 Head of a Gang (深度优先遍历寻找连通分量)
查看>>
(PAT 1053) Path of Equal Weight (树的深度优先遍历+剪枝)
查看>>
(PAT 1077) Kuchiguse (字符串暴力枚举)
查看>>
(PAT 1141) PAT Ranking of Institutions (排序+unorded_map的使用)
查看>>