Apache网站部署

站点添加及linux防火墙和selinux启动和停止

apache站点添加

linux系统防火墙和selinux起停

1、防火墙firewall操作

查看防火墙的状态,如下(默认开启):

systemctl status firewalld

关闭服务

systemctl stop firewalld

关闭开机自动开启FireWall服务

systemctl disable firewalld

2、selinux操作

查看SELinux的状态,如下(默认开启):

getenforce 开启状态为Enforcing

单次修改,重启失效:

setenforce 0

永久修改:

vi /etc/selinux/config

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=enforcing

SELINUXTYPE= can take one of three two values:

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are protected.

mls - Multi Level Security protection.

SELINUXTYPE=targeted

将enforcing改为disabled,保存退出

相关推荐
零星_AagT18 小时前
Apache-CC6链审计笔记
java·笔记·apache·代码审计
花千树-0102 天前
Java中的自然语言处理(NLP)工具:Stanford NLP、Apache OpenNLP、DL4J
java·自然语言处理·nlp·aigc·apache
Bai_Yin2 天前
Debezium 与 Apache Kafka 的集成方式
分布式·kafka·apache·debezium
xing.yu.CTF2 天前
Web入侵实战分析-常见web攻击类应急处置实验2
运维·服务器·windows·web安全·apache·php漏洞·phpstudy后门漏洞
10km3 天前
java:Apache Commons Configuration2占位符解析异常的正确解法:${prefix:name:-default}
java·apache·configuration2·变量插值·interpolation
Apache IoTDB4 天前
Apache IoTDB v2.0.1-beta 发布|树、表双模型支持,更灵活更全面!
apache·iotdb
垚垚 Securify 前沿站4 天前
Apache Logic4j 库反序列化漏洞复现与深度剖析
linux·网络·安全·web安全·系统安全·apache
undo_try5 天前
大数据组件(四)快速入门实时数据湖存储系统Apache Paimon(1)
大数据·flink·apache
花千树-0106 天前
使用 Apache PDFBox 提取 PDF 中的文本和图像
java·pdf·apache·ai编程
百事可乐☆6 天前
uniapp 支付宝小程序自定义导航栏
小程序·uni-app·apache