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

相关推荐
黑客老李7 小时前
JavaSec | SpringAOP 链学习分析
java·运维·服务器·开发语言·学习·apache·memcached
临水逸12 小时前
可视化大屏工具对比:GoView、DataRoom、积木JimuBI、Metabase、DataEase、Apache Superset 与 Grafana
apache·grafana
SelectDB技术团队12 小时前
Apache Doris + MCP:Agent 时代的实时数据分析底座
人工智能·数据挖掘·数据分析·apache·mcp
田猿笔记12 小时前
Apache DolphinScheduler 和 Apache Airflow 对比
apache
酷爱码12 小时前
在 Linux 中修改 Apache HTTP Server(httpd)默认端口的完整指南
linux·http·apache
学习HCIA的小白12 小时前
Apache Druid
apache
Yungoal2 天前
php & apache构建 Web 服务器
服务器·php·apache
橘子-青衫3 天前
掌握HttpClient技术:从基础到实战(Apache)
java·后端·apache
学习HCIA的小白4 天前
Apache APISIX
apache
gs801404 天前
12306高并发计算架构揭秘:Apache Geode 客户端接入与实践
架构·apache