Warning: fsockopen(): unable to connect to tcp://localhost:25 (Permission denied)
2013-08-15 17:01
1561 查看
发邮件遇到的问题
Warning: fsockopen(): unable to connect to tcp://localhost:25 (Permission denied)
----------------------------------------------------------------------------------------------------------------------------------
原因
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
解决办法
(7)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を無効化
Warning: fsockopen(): unable to connect to tcp://localhost:25 (Permission denied)
----------------------------------------------------------------------------------------------------------------------------------
原因
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
解决办法
(7)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を無効化
相关文章推荐
- 解决mantis邮件报错SYSTEM WARNING: fsockopen() [function.fsockopen]: unable to connect to mail.****.com:25 (ӉӚĿ?껺Ʒ???????ӡ?)
- Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25.......
- 学习activeMQ时启动发送端和接受端时,报错:Could not connect to broker URL: tcp://localhost:61616
- 无法连接到 Visual Studio 的 Localhost Web 服务器/Unable to connect to Visual Studio's Localhost Web Server
- adb通过TCP/IP连接提示 unable to connect to *, Connection refused的解决方法
- Unable to open debugger port (localhost:8617): java.net.ConnectException "连接超时"
- 搭建openstack,报:Error: unable to connect to node rabbit@localhost: nodedown
- Workerman--unable to connect to tcp://0.0.0.0:7272 (Address already in use)
- Error: unable to connect to node rabbit@localhost: nodedown
- php报错:mail() : Failed to connect to mailserver at "localhost" port 25
- Unable to connect to CUPS server localhost:631
- Could not connect to SMTP host: localhost, port: 25;
- Unable to connect to data source (DSN: shangjihuiclient; Network Address: ; Port Number: 53397). Cannot connect to TimesTen Server. Verify that the TimesTen Server is running or verify that your TCP PORT is set correctly.
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- 解决"unable to connect to visual studio s localhost web server"
- PHP Warning: mssql_connect() Unable to connect to server
- Unable to connect to host localhost on port 7055 after 45000 ms
- ASP.NET development server failed to start listening on port (dynamic port) & Error Unable to connect to Visual Stutio's localhost web server
- Unable to connect to CUPS server localhost:631 - C
- androidstudio调试时报Error running app: Unable to open debugger port (localhost:8600): java.net.ConnectE