Linux Upload Project __linux

Source: Internet
Author: User

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;

#}

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.