[CentOS7] Installing nginx


  1. Download the nginx package that corresponds to the current system version (package) # wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
  2. Create a yum repository for nginx # rpm -ivhnginx-release-centos-7-0.el7.ngx.noarch.rpm
  3. Download and install nginx # yum install nginx
  4. Start the nginx service systemctl start nginx
  5. configure default configure The document is in /etc/nginx under the path, Use this configure It already works correctlynginx; If you need to customize, Modify thenginx.conf Just wait for the file。
  6. test (machinery etc) Type the IP of the machine where the nginx environment is deployed into the browser address bar and if everything is working, you should see something like the following.

END

caveat emptor

  • Unless specifically stated or in configure Outside the context of the document,'#' The opening statement indicates the content of the command entered in the terminal

Recommended>>
1、Dropping big data to kill President Liu Qing No the estimated price is adjusted in real time with road conditionsTitanium Express
2、Taking you out of your blockchain misconceptions
3、Armitages Beijing Cloud Data Center Receives LEED Gold Certification and National CQCA Class Certification for Green Buildings
4、E World Expo International IBM develops debate AI to beat top human debaters in first battle
5、If you stay single for another 100 years you might have a robot girlfriend to marry and have children with

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号