当前位置: 首页 > news >正文

织梦网站安装视频网站建设合同附件明细

织梦网站安装视频,网站建设合同附件明细,古蔺中国建设银行网站,南阳做网站aokuo1.背景 有时候远程或者某些业务需要做转发就会用到iptables或者nginx,或者ss都可以 根据自己的情况去适配。 2.方法: 1)iptables -把linux内核转发功能打开 echo "net.ipv4.ip_forward1" >> /etc/sysctl.conf -出入转发…

1.背景

有时候远程或者某些业务需要做转发就会用到iptables或者nginx,或者ss都可以

根据自己的情况去适配。

2.方法:

1)iptables

-把linux内核转发功能打开

echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

-出入转发:192.168.1.1:19100 -->10.22.0.5:9100

iptables -t nat -A PREROUTING -d 192.168.1.1 -p tcp -m tcp --dport 19100 -j DNAT --to-destination 10.22.0.5:9100

iptables -t -A POSTROUTING -d 10.22.0.5/32 -p tcp -m tcp --dport 9100 -j SNAT --to-source 192.168.1.1

2) nginx

-安装nginx:--一般现在新装版本nginx都在1.19以上,都含有--with-stream模块,手动编译的自行添加

yum -y install nginx

nginx -V

nginx version: nginx/1.20.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
built with OpenSSL 1.1.1k  FIPS 25 Mar 2021
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-compat --with-debug --with-file-aio --with-google_perftools_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_perl_module=dynamic --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_xslt_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --with-ld-opt='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E'

配置:放到nginx.conf 里面就放到http上面,也可以在http上面加include指定路径。

stream {upstream tcp_proxy {hash $remote_addr consistent;server 10.22.0.5:9100;}server {listen 19100;proxy_connect_timeout 1s;proxy_timeout 10s;proxy_pass tcp_proxy;}}

启动服务器可;

检查端口是否起来

netstat -nltp | grep 19100

如果发现--with-stream=dynamic 存在启动还是报错的话

# yum -y install nginx-all-modules.noarch

http://www.yayakq.cn/news/392691/

相关文章:

  • 正规的佛山网站建设价格简洁物流网站模板
  • 网站充值接口wordpress版权所有在哪里
  • 石家庄做网站电话安徽华强建设集团网站
  • 微网站开发软件wordpress密码漏洞’
  • 网站编排互联网获客
  • 如何用python做网站脚本语言阿里巴巴商标注册官网
  • 网站的描述百度付费推广
  • 服务器下载安装河南网站seo费用
  • 农业科技公司网站案例如何塑造和推广网络品牌
  • 长沙网站定制沈阳做网站一诚金网络专业
  • 茂名网站建设技术托管云网站系统
  • 宁波门户网站建设网站建设服务ysaigo
  • ps中网站页面做多大的百度wordpress安装
  • 软件公司网站系统集成建设建站哪家好用兴田德润
  • 免费免费建站寿县有做网站开发的吗
  • 关于网站建设的网站餐饮加盟网站建设方案
  • 新站seo快速排名 排名佛山seo代理计费
  • 外语网站建设目的网站建设分金手指科捷11
  • 校园网站建设规划书做中国菜的外国网站
  • 个人建筑资格证书查询站长工具seo综合查询怎么关闭
  • 定制型网站制作公司物流网站给做软件下载
  • 湘潭网站建设 安全还踏实磐石网络广州网页设计企业
  • 网站关键字优化教程hao123网站模板
  • 哪里有建设好的网站手工制作国庆节作品
  • 郴州市住房和城乡建设局网站网站开发价格评估
  • 郑州地区网站建设公司能做视频的软件有哪些
  • 微信公众号影视网站怎么做做一个卖车的网站该怎么做
  • 我想花钱做网站企业专属空间登录
  • 建站节深圳网站建设最专业
  • 广东专业企业网站建设怎么建立微信网站