分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

Linux中关于httpd仓库安装的简要步骤

发布时间:2023-09-06 02:04责任编辑:郭大石关键词:httpLinux
#创建httpd仓库步骤

1.配置本地yum源

此步骤略

2.搭建http 启动服务

[root@linfan ~]# yum install -y httpd[root@linfan ~]# systemctl start httpd[root@linfan ~]# ps -ef|grep httpdroot ??????2232 ?????1 ?0 18:53 ? ???????00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ????2233 ??2232 ?0 18:53 ? ???????00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ????2234 ??2232 ?0 18:53 ? ???????00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ????2235 ??2232 ?0 18:53 ? ???????00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ????2236 ??2232 ?0 18:53 ? ???????00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ????2237 ??2232 ?0 18:53 ? ???????00:00:00 /usr/sbin/httpd -DFOREGROUNDroot ??????2252 ??2183 ?0 18:55 pts/1 ???00:00:00 grep --color=auto httpd[root@linfan ~]# ss -antlState ?????Recv-Q Send-Q Local Address:Port ??????????????Peer Address:Port ?????????????LISTEN ????0 ?????128 ?????????*:22 ??????????????????????*:* ?????????????????LISTEN ????0 ?????100 ???127.0.0.1:25 ??????????????????????*:* ?????????????????LISTEN ????0 ?????128 ????????:::80 ?????????????????????:::* ?????????????????LISTEN ????0 ?????128 ????????:::22 ?????????????????????:::* ?????????????????LISTEN ????0 ?????100 ???????::1:25 ?????????????????????:::* ?

3.创建http源的目录

[root@linfan ~]# ls /var/www/html[root@linfan ~]# cd /var/www/html[root@linfan html]# mkdir lin.d

4.把光盘内容拷贝到新创建的目录

[root@linfan html]# cp -r /mnt/* /var/www/html/lin.d/

5.创建并配置httpd源的配置文件

[root@linfan html]# vi /etc/yum.repos.d/doudou.repo[doudou]name=This is a cute boybaseurl=http://192.168.24.232/lin.denabled=1gpgcheck=0

6.删掉本地yum源

[root@linfan html]# mv /etc/yum.repos.d/doudou.repo .

7.清空本地yum源

[root@linfan html]# yum clean all

8.关闭防火墙

[root@linfan html]# iptables -L ?//列出所有规则[root@linfan html]# getenforce ???//查看selinux状态[root@linfan html]# setenforce 0 ??//临时关闭selinux[root@linfan html]# iptables -F ?//清除所有规则[root@linfan html]# iptables -X ?//清除所有自定义规则[root@linfan html]# iptables -Z ??//清空规则链中的数据包计算器和字节计数器

9.验证httpd源是否搭建成功

Linux中关于httpd仓库安装的简要步骤

原文地址:http://blog.51cto.com/13858192/2141897

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved