![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
文章平均质量分 67
sunyongye
这个作者很懒,什么都没留下…
展开
-
CentOs7_Nginx_Uwsgi_Flask环境搭建
一、安装基本环境yum -y install gcc gcc-c++ zlib zlib-devel openssl openssl-devel pcre pcre-devel GeoIP gd libXpm libxslt sqlite-devel nginx二、查看nginx是否安装成功systemctl start nginx;systemctl enable nginx ps -原创 2018-01-14 14:36:07 · 621 阅读 · 0 评论 -
访问KVM宿主机IP指定端口,跳转到虚拟机IP指定端口的方法
操作系统:centos7u3KVM宿主机:10.18.41.223:8000vm: 192.168.122.4:22vm连网模式:NAT要求:通过ssh访问10.18.41.223:8000最终跳转到192.168.122.4:22一、准备好vm,虚拟网络接口使用NAT注:vm在默认NAT模式已能ping通外网,虚拟机在启动时已在iptables 已在nat表配SNAT规则。原创 2018-01-15 21:52:28 · 5230 阅读 · 2 评论 -
TCP/IP三次握手四次断开
TCP的三次握手(建立连接)和四次挥手(关闭连接)参照:http://course.ccniit.com/CSTD/Linux/reference/files/018.PDFhttp://hi.baidu.com/raycomer/item/944d23d9b502d13be3108f61 建立连接: 理解:窗口和滑动窗口TCP的流量控制TCP使用窗口机制进行流转载 2018-01-08 21:29:17 · 13972 阅读 · 0 评论 -
部署redis集群
环境:主redis 192.168.150.3从redis 192.168.150.4web服务器 192.168.150.5一、 部署redis集群: (两台都有缓存,同时存一样的)主redis:1)#yum -y install redis2) #vim /etc/redis.conf #bind 127.0.0.1 // 127时原创 2018-01-28 16:48:38 · 190 阅读 · 0 评论 -
iptables 扩展
1、multiport扩展 以离散方式定义多端口匹配,最多指定15个端口: [!] --source-ports, --sports port[,port|,port:port].....: 指明多个源断口口; [!] --destination-ports, --dports port[,port|,port:port].....: 指明多翻译 2018-01-20 18:01:07 · 375 阅读 · 0 评论