📜  连接尝试因“EAI_NONAME - 未提供节点名和服务名,或未知”而失败. - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:06.362000             🧑  作者: Mango

代码示例1
You can use the following methods

In my personal experience, these methods below really helps me dealing with ftp

1. default port is 21, make sure to check if your host port is also 21.
2. remove ftp:// in the hostname.
3. use hostname IP address, you can try both with and without ftp://.
4. maybe the hostname is blocked in your country, try to use proxy or a VPN.
5. Using Plain FTP(unsecure) may be a solution but it is NOT RECOMMENDED because it pose threats to your server.