zoukankan      html  css  js  c++  java
  • Warning: fsockopen(): unable to connect to tcp://localhost:3306 (Permission denied)

    ecstore网页安装报不能连接mysql数据库

    原因

    http://www.vbulletin.com/forum/forum/vbulletin-3-8/vbulletin-3-8-questions-problems-and-troubleshooting/3945336-can-t-get-email-working-again-after-server-move

    http://www.vbulletin.com/forum/forum/vbulletin-legacy-versions-products/legacy-vbulletin-versions/vbulletin-3-6-questions-problems-and-troubleshooting/223336-smtp-mail-and-selinux-in-enforcing-mode?s=182f71624b82111a30417cdc5d07876b

    就是因为没关selinux

    解决办法

    root@centos ~]# getenforce ← SELinux状態確認
    Enforcing ← SELinux有効
    
    
    [root@centos ~]# setenforce 0 ← SELinux無効化
    
    
    [root@centos ~]# getenforce ← SELinux状態確認
    Permissive ← SELinux無効
    
    
    [root@centos ~]# vi /etc/sysconfig/selinux ← SELinux設定ファイル編集
    SELINUX=enforcing
    ↓
    SELINUX=disabled ← システム起動時にSELinuxを無効化
  • 相关阅读:
    CPU
    CentOS7 Tomcat 环境部署
    CentOS7 NTP 安装配置
    CISCO VLAN ACL
    ESXI6.0启用 snmp
    编译安装 varnish-4.1.2和yum 安装 varnish-4.0.3
    CentOS7 安装中文帮助手册
    CentOS7 学习笔记
    CentOS7 编译安装 nginx-1.10.0
    CentOS7 cacti 安装
  • 原文地址:https://www.cnblogs.com/limonyun/p/7777294.html
Copyright © 2011-2022 走看看