When nginx executes make & make install, it reports: The file cannot be recognized: the file is truncated

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
Insert image description here
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.

Insert image description here

Insert image description here

Guess you like

Origin blog.csdn.net/qq_45752401/article/details/125482342