我安装了vsftpd,在本地访问时一切正常,但远程访问时无法查看文件夹。
在我的远程 PC 上使用 filezilla,我得到了这个:
status: connecting to 192.x.x.x
status: connection established, waiting for welcome message
response: welcome
command: user admin
response: specify pass
command: pass ****
response: 230 login successful
command: opts utf8 on
response: 200 always in utf8 mode
status: connected
status: retrieving directory listing..
command: pwd
response: 257 "/var/ftp"
command: type I
response: 200 switching to binary mode
command: PASV
response: 227 entering passive mode (192.168.8.5,59,0).
command: list
Run Code Online (Sandbox Code Playgroud)
它就停在那里,然后连接超时,我无法查看 ftp 服务器上的文件夹或目录。
在我的 iptables -L -n …
我打开了谷歌结果向我抛出的有关此 MySQL 错误的所有链接。我一直在花几个小时来让它工作..
我有一个 Web 服务器,(apache in centos installed in host B, and want to connect to a MySQL server in host A)两个主机都在同一个子网中。
我可以使用 CLI 访问远程 mysql
mysql -u root -h <ip> -p
但无法使用PHP函数连接到mysql mysql_connect()
我已经
在 /etc/my.cnf 中禁用SELINUX并system-config-firewall-tui包含以下语法
[client]
port =3306
socket = /var/lib/mysql/mysql.sock
Run Code Online (Sandbox Code Playgroud)
在网上找到的一些解决方案告诉我输入setbool与 selinux 相关的,但事实是,SELINUX 已经被禁用。
奇怪的是,我可以通过 CLI 连接,但不能在 php 函数中
另外,我php-mysql在两个主机上都有
这是我的 main.php
<?php
mysql_connect('192.168.8.136','root','admin') or die (mysql_error());
echo "Connected to MySQL server";
mysql_select_db("web") or die …Run Code Online (Sandbox Code Playgroud)