Detailed process of installing nginx1.9.1 on centos8

Detailed process of installing nginx1.9.1 on centos8

1.17.9 More delicious, really

Nginx download address: https://nginx.org/download/

1. Download nginx

wget https://nginx.org/download/nginx-1.9.9.tar.gz

2. Unzip nginx

tar -zxvf nginx-1.9.9.tar.gz

3. Install dependency packages

yum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel

4. Configure nginx

cd nginx-1.9.9/
./configure \--prefix=/usr/local/nginx \--with-http_ssl_module \--conf-path=/usr/local/nginx/conf/nginx.conf \--pid-path=/usr/local/nginx/conf/nginx.pid \--lock-path=/var/lock/nginx.lock \--error-log-path=/var/logs/nginx/error.log \--http-log-path=/var/logs/nginx/access.log \--with-http_gzip_static_module \--http-client-body-temp-path=/var/temp/nginx/client \--http-proxy-temp-path=/var/temp/nginx/proxy \--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \--http-scgi-temp-path=/var/temp/nginx/scgi

5. Edit some configurations to prepare for the following make command

Edit the file nginx root directory: objs/Makefile

Edit file: src/os/unix/ngx_user.c

6. Compile

make

7. Installation

make install

8. Open port 80

Check whether port 80 is open:

firewall-cmd --zone=public --list-ports

If there is no 80/tcp, execute the following command to open the port

#Permanently open port 80 firewall-cmd --zone=public --add-port=80/tcp --permanent
#Update firewall rules firewall-cmd --reload

9. Start nginx

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

10. Web access

This is the end of this article about the detailed process of installing nginx1.9.1 on centos8. For more relevant content about installing nginx1.9.1 on centos8, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to install PHP7.4 and Nginx on Centos
  • Detailed tutorial for installing nginx on centos8 (picture and text)
  • Solve the problem of "Welcome to nginx on Fedora!" after installing nginx on Centos7, and there is no default.conf file in the conf.d directory
  • How to install Nginx in CentOS7 and configure automatic startup
  • Detailed tutorial on installing PHP and Nginx on Centos7
  • Detailed explanation of Centos7 source code compilation and installation of Nginx1.13

<<:  Use trigger method to realize pop-up file selection dialog box without clicking file type input

>>:  Summary of 76 Experience Points of User Experience

Recommend

Using JS to implement binary tree traversal algorithm example code

Table of contents Preface 1. Binary Tree 1.1. Tra...

MySQL implementation of lastInfdexOf function example

Sometimes MySQL needs to use a function similar t...

Solution to the conflict between Linux kernel and SVN versions

Phenomenon The system could compile the Linux sys...

JS realizes the effect of picture waterfall flow

This article shares the specific code of JS to re...

uniapp Sample code for implementing global sharing of WeChat mini-programs

Table of contents Create a global shared content ...

How to make a website front end elegant and attractive to users

The temperament of a web front-end website is a fe...

Explanation of Truncate Table usage

TRUNCATE TABLE Deletes all rows in a table withou...

How to use vuex in Vue project

Table of contents What is Vuex? Vuex usage cycle ...

Ubuntu Server 16.04 MySQL 8.0 installation and configuration graphic tutorial

Ubuntu Server 16.04 MySQL 8.0 installation and co...

Summary of various methods for JS data type detection

Table of contents background What are the methods...

Summary of common commands for building ZooKeeper3.4 middleware under centos7

1. Download and decompress 1. Introduction to Zoo...

Use vue2+elementui for hover prompts

Vue2+elementui's hover prompts are divided in...

Detailed explanation of jquery tag selector application example

This article example shares the specific code of ...

How to Check Memory Usage in Linux

When troubleshooting system problems, application...