
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 · 666 阅读 · 0 评论 -
访问KVM宿主机IP指定端口,跳转到虚拟机IP指定端口的方法
操作系统:centos7u3 KVM宿主机:10.18.41.223:8000 vm: 192.168.122.4:22 vm连网模式: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 · 5463 阅读 · 2 评论 -
TCP/IP三次握手四次断开
TCP的三次握手(建立连接)和四次挥手(关闭连接) 参照: http://course.ccniit.com/CSTD/Linux/reference/files/018.PDF http://hi.baidu.com/raycomer/item/944d23d9b502d13be3108f61 建立连接: 理解:窗口和滑动窗口 TCP的流量控制 TCP使用窗口机制进行流转载 2018-01-08 21:29:17 · 14115 阅读 · 0 评论 -
部署redis集群
环境: 主redis 192.168.150.3 从redis 192.168.150.4 web服务器 192.168.150.5 一、 部署redis集群: (两台都有缓存,同时存一样的) 主redis: 1)#yum -y install redis 2) #vim /etc/redis.conf #bind 127.0.0.1 // 127时原创 2018-01-28 16:48:38 · 231 阅读 · 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 · 432 阅读 · 0 评论