Warning: ftp_fget() expects parameter 1 to be resource, null given in /www/wwwroot/new.weijing.co/wp-admin/includes/class-wp-filesystem-ftpext.php on line 146

Nightingale安装访问报错Permission denied) while connecting to upstream

Nightingale安装访问报错如下:

2020/05/25 18:41:53 [crit] 3974#3974: *5 connect() to 127.0.0.1:5800 failed (13 server: _, request: \"GET /api/portal/self/profile HTTP/1.1\", upstream: \"http:/er: \"http://192.168.80.142/\"

是由于没有关闭SeLinux的导致。

解决版本如下:

  • 关闭SeLinux

 临时关闭(不用重启机器):

# 设置SELinux 成为permissive模式
setenforce 0                
# setenforce 1 设置SELinux 成为enforcing模式
  • 修改配置文件
# 修改/etc/selinux/config 文件
将SELINUX=enforcing改为
SELINUX=disabled
# 重启机器即可
  • 执行下面的命令
setsebool -P httpd_can_network_connect 1

发表评论

您的电子邮箱地址不会被公开。

Shopping Cart