SHR公有云企业微信对接操作步骤

一、安装ngxin环境
1. 安装操作系统补丁
yum -y update && yum install -y gcc wget tree pcre-devel zlib-devel openssl openssl-devel libxml2 libxml2-dev libxslt-devel gd-devel ncurses-devel perl perl-ExtUtils-Embed gperftools
2. 下载nginx安装包、解压
wget https://nginx.org/download/nginx-1.20.2.tar.gz
tar zxf nginx-1.20.2.tar.gz &&
3. 源码安装
cd nginx-1.20.2
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-threads --with-stream --with-stream_ssl_preread_module --with-stream_ssl_module
make && make install
4. 安装完成后,添加软链接,加入到环境变量中
ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx
5. 配置/usr/local/nginx/conf/nginx.conf文件(就按照下面的配置,其他的全不要)
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
stream {
#resolver 114.114.114.114;
server {
listen 443;
ssl_preread on;
#proxy_connect_timeo
SHR公有云企业微信对接操作步骤
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



