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

相关推荐
阿絮~10 小时前
Apache RocketMQ进阶之路阅读笔记和疑问
笔记·apache·rocketmq
Fireworkitte3 天前
Apache POI 详解 - Java 操作 Excel/Word/PPT
java·apache·excel
蚂蚁数据AntData3 天前
从性能优化赛到社区Committer,走进赵宇捷在Apache Fory的成长之路
大数据·开源·apache·数据库架构
小湘西3 天前
Apache HttpClient 的请求模型和 I/O 类型
java·http·apache
超级小忍13 天前
Spring Boot 集成 Apache Kafka 实战指南
spring boot·kafka·apache
天上掉下来个程小白15 天前
Apache ECharts-02.入门案例
前端·spring boot·apache·echarts·苍穹外卖
SelectDB技术团队16 天前
Apache Doris 3.0.6 版本正式发布
大数据·数据分析·apache·实时分析·极速分析
guygg8817 天前
Linux中的阻塞信号与信号原理
linux·mysql·apache
天上掉下来个程小白17 天前
Apache ECharts-01.介绍
前端·javascript·spring boot·apache·苍穹外卖