标签:tool tcp ase 完成后 http open width openssl nginx 安装
http://nginx.org/
nginx-1.19.1.tar.gz
https://ftp.pcre.org/pub/pcre/pcre2-10.35.tar.gz
https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
pcre2-10.35.tar.gz 或 pcre-8.44.tar.gz
./configure 完成后,回到 pcre 目录下执行 make,
make && make install PREFIX=/usr/local/nginx
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
# 一键安装上面四个依赖
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
1、 解压缩 nginx-xx.tar.gz 包。
2、 进入解压缩目录,执行./configure。
3、 make && make install PREFIX=/usr/local/nginx
firewall-cmd --list-all
firewall-cmd --add-service=http --permanent
sudo firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload
1、cd /usr/local/nginx/sbin
# 启动 nginx
2、./nginx
3、curl localhost:80/ 或 https://ip:80/
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
标签:tool tcp ase 完成后 http open width openssl nginx 安装
原文地址:https://www.cnblogs.com/zwxo1/p/13403074.html