[Essay] [Tools] [Install nginx on Debian9]

  • Configuration information:

    Operating system Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018- 05-07) x86_64 GNU/Linux

install ssh (not It is necessary to use client tools such as xshell to connect to the server)

  • Modify the source. The source configuration file is /etc/apt/source.list. Replace everything in the file with the following content.
deb http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib
deb http://mirrors.ustc.edu.cn/debian / stretch-updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.ustc .edu.cn/debian/ stretch main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib
deb-src http ://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib
  • Update source information
  • apt-get update
    • Install ssh server
    apt-get install openssh-server
    • Configure ssh to allow root user login
    vi /etc/ssh/sshd_conf
    PermitRootLogin yes
    • restart ssh
    /etc/init.d/ssh restart

    install Install Nginx

    • Download the source code of nginx. The download page of the official website of nginx is http://nginx.org/en/download.html.
    wget http://nginx.org/download/nginx-1.15.1.tar.gz
    tar -zxvf nginx-1.15.1.tar.gz
    • Go to the source file directory of nginx and call the configure script for configuration. The configure script collects operating system information and parameters passed by the user, and finally generates a Makefile.
    • Compile and install.

    Others

    • The default installation directory of nginx is /usr/local/nginx.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4660 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.