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

相关推荐
大厂数码评测员1 分钟前
免费菜谱管理小程序怎么做才顺手:从情侣、个人、家庭三类场景拆需求和实现
服务器·小程序·apache
四方云12 小时前
MySQL 迁移到 Apache Doris 生产实践:从评估到落地的完整指南
数据库·mysql·apache
小羊Yveesss13 小时前
2026年商城小程序开发属于什么费用?
apache
大厂数码评测员14 小时前
2026 年家庭菜谱记录工具怎么选:从功能边界和小程序代码实现看免费与付费差异
java·开发语言·apache
渣渣盟1 天前
Apache Flink物理分区算子全解析
大数据·flink·apache
Shadow(⊙o⊙)2 天前
linux基础指令2.0
linux·运维·服务器·学习·apache
运维全栈笔记4 天前
Linux安装配置Tomcat保姆级教程:从部署到性能调优
linux·服务器·中间件·tomcat·apache·web
❀͜͡傀儡师4 天前
Apache Doris 4.0.0 存算分离手动部署指南
apache·doris 4.0
DolphinScheduler社区7 天前
DolphinScheduler 3.3.2 如何调用 DataX 3.0 + SeaTunnel 2.3.12?附 Demo演示!
java·spark·apache·海豚调度·大数据工作流调度
YaBingSec8 天前
玄机网络安全靶场:Apache HTTPD 解析漏洞(CVE-2017-15715)WP
java·笔记·安全·web安全·php·apache