Configure basic information, the command is as follows
#配置configure --prefix 代表安装的路径,--with-http_ssl_module 安装ssl,--with-http_stub_status_module查看nginx的客户端状态
./configure --prefix=/usr/local/nginx-1.20.2 --with-http_ssl_module --with-http_stub_status_module
After the above configuration information is executed, when the make & make install step is executed in the nginx directory, the following exception is found. As a result, the
installation directory we configured: /usr/local/nginx-1.20.2 cannot find this directory.
solve:
yum -y install openssl openssl-devel
After executing the solution command, execute the compile and installation command.