Connect with WINSCP tool, SFTP protocol, 22 port, username, password (this username is server username and password, not FTP tool account password)
Aliyun Server Project root directory:
/usr/local/nginx/html/
Database directory:
/usr/local/mysql/bin/
Input directive:
./mysql-uroot-p Password Login Database
To create a database:
Create library name;
To import a database:
Source is followed by the SQL file path;
Configure the domain name point in the server vhost.conf file (after modifying the following code, add to the vhost.conf file after the line):
#user nobody;
server {
Listen 80;
server_name 120.77.65.70; This IP is changed to the corresponding domain name
#charset Koi8-r;
Access_log Logs/120.77.65.70.access.log; This IP is changed to the corresponding domain name
Location/{
root/usr/local/nginx/html/www; www change to project root file name
Index index.php index.html index.htm;
if (!-e $request _filename) {rewrite ^ (. *) $/index.php?s=$1 last; Break }
}
Error_page 404/404.html;
# REDIRECT Server error pages to thestatic page/50x.html
#
#error_page 502 503 504/50x.html;
# location =/50x.html {
# root/usr/local/nginx/html/www; www change to project root file name
# }
# Proxy The PHP scripts to apachelistening on 127.0.0.1:80
#
#location ~ \.php$ {
# Proxy_pass http://127.0.0.1;
#}
# Pass the PHP scripts to fastcgiserver listening on 127.0.0.1:9000
#
Location ~ \.php$ {
root/usr/local/nginx/html/www; www change to project root file name
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index.php;
Fastcgi_param script_filename $document _root$fastcgi_script_name;
Include Fastcgi_params;
}
# Deny access to. htaccess files, Ifapache ' s document Root
# concurs with Nginx ' s one
#
#location ~/\.ht {
# Deny All;
#}
}