搭建博客系统(LNMP)

发布时间 2023-11-09 11:24:37作者: Cloudservice

搭建博客系统(LNMP)

博客系统用到的三种配置:php+nginx+mysql

1.改主机名

[root@localhost ~]# hostnamectl set-hostname lnmp
[root@localhost ~]# bash

2.关闭Firewalld

[root@lnmp ~]# systemctl stop firewalld
[root@lnmp ~]# systemctl enabled firewalld

3.关闭Selinux

[root@lnmp ~]# cat /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=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected. 
# mls - Multi Level Security protection.
SELINUXTYPE=targeted