Linux releases WebGL

1. Install nginx   http://nginx.org/2022.html

Installation Environment:

//安装四个依赖
yum -y install gcc-c++ zlib zlib-devel pcre-devel openssl openssl-devel
//创建一个文件夹
cd /usr/local
mkdir nginx
cd nginx
//下载tar包
wget http://nginx.org/download/nginx-1.24.0.tar.gz
//解压到当前目录
tar -zxvf nginx-1.24.0.tar.gz

//进入nginx目录
cd /usr/local/nginx
//进入目录
cd nginx-1.24.0
//执行命令 
./configure
//执行make命令
make
//执行make install命令
make install

 Enter the following code in the same directory as nginx-1.24.0 to start the nginx service

./nginx

./nginx start

./nginx -s stop close

./nginx -s reload restart

Then the browser can access it, as shown below:

If access still fails, check to see if you have configured a security group. It seems to be turned off by default. Just open the required ports.

 

Guess you like

Origin blog.csdn.net/qq_38513810/article/details/131785038