搭建博客系统(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
标签:targeted,SELinux,lnmp,博客,LNMP,policy,root,搭建
From: https://www.cnblogs.com/whwh/p/17819305.html