Project deployment problem: xftp cannot connect to the server/Nginx403 Forbidden solution

1. xftp cannot connect to the server

  After configuring the correct ip, username and password in xftp, I can't connect

  Solution: Change the FTP in the protocol to SFTP. Note that after changing to SFTP, the port will be changed to 22 by default. If it is still the original 21, it will still not be connected.

2. Nginx appears 403 Forbidden and finally solved

  When configuring with nginx, a 403 access forbidden error occurs

  Solution: Open nginx.conf, for example: vim /etc/nginx/nginx.conf, change the user name to user root or other user name with high authority

  The original general default is: , change to: user root;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325299059&siteId=291194637