艽野尘梦
  • Home
  • Tag
  • Author

CentOS7

共3篇文章

Linux

CentOS 7上WordPress由于文件权限导致插件无法安装

Centos7 上使用 WordPress 搭建了一个小站,使用 Nginx 做服务器,配置环节一切正常,最后站点也可以正常访问,但是在安装插件的时候出现了 无法创建文件夹的错误。google 一番,都是说 WordPress 文件权限设置不对,但是我已经将所有 文件夹权限设置为 755 文件权限设置为 644。 直到我看到了这个 https://wordpress.stackexchange.com/questions/302778/installation-failed-could-not-create-directory-centos-7 才找到根源所在 : SELinux. 检查 SELinux

  • pengfei xu
    pengfei xu
2 min read
Linux

CentOS 7 修改 ssh 端口

晚上登陆 linode 主机之后,发现有 4k + ssh 失败的登录记录。嚯,我这是被盯上了呀。 统计一下多少暴力破解 root 密码的 $ sudo grep "Failed password for root" /var/log/secure | awk '{print $11}' | sort | uniq -c | sort -nr | more # 结果如下

  • pengfei xu
    pengfei xu
3 min read
Linux

在CentOS 7上安装LEMP(Nginx+MySQL+PHP)

  Install LEMP stack(Linux Nginx MySQL PHP)on CentOS7 step one — install nginx 添加 CentOS 7 EPEL repository sudo yum install epel-release 安装 nginx sudo yum install nginx 启动 nginx sudo

  • pengfei xu
    pengfei xu
3 min read
艽野尘梦 © 2023
最新文章 Ghost