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网站服务基础

    2024-02-09 06:08:03       28 阅读
  2. Apache 网站服务基础

    2024-02-09 06:08:03       3 阅读
  3. apache seatunnel web 安装部署

    2024-02-09 06:08:03       37 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-02-09 06:08:03       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-09 06:08:03       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-09 06:08:03       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-09 06:08:03       18 阅读

热门阅读

  1. C#面:什么是Code-Behind技术

    2024-02-09 06:08:03       28 阅读
  2. PostgreSQL 与 MySQL 相比,优势何在?

    2024-02-09 06:08:03       36 阅读
  3. ASP.NET Core 7 MVC 使用 Ajax 和控制器通信

    2024-02-09 06:08:03       33 阅读
  4. C语言如何控制输出⻓度?

    2024-02-09 06:08:03       33 阅读
  5. 【flink状态管理(四)】MemoryStateBackend的实现

    2024-02-09 06:08:03       27 阅读