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,保存退出

相关推荐
Apache Flink7 小时前
Apache Flink 流批融合技术介绍
人工智能·flink·apache
程序员皮皮林1 天前
开源PDF工具 Apache PDFBox 认识及使用(知识点+案例)
java·pdf·开源·apache
前端-文龙刚1 天前
小程序给对象赋值(双向绑定)方法之一
服务器·小程序·apache
小安运维日记1 天前
Linux云计算 |【第三阶段】PROJECT1-DAY1
linux·运维·云计算·apache
檀越剑指大厂2 天前
开源多场景问答社区论坛Apache Answer本地部署并发布至公网使用
开源·apache
nvd112 天前
Java ETL - Apache Beam 简介
java·apache·etl
兮动人3 天前
错误: 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
分布式·zookeeper·apache
凌晨五点的星3 天前
网络安全-利用 Apache Mod CGI
apache
一 乐5 天前
学习平台|基于java的移动学习平台系统小程序(源码+数据库+文档)
java·数据库·学习·小程序·论文·apache
weixin_436525075 天前
【安全漏洞】Apache Tomcat 高危漏洞版本
java·apache