08 2022 档案

摘要:1. 简要 双网卡绑定技术在centos7中使用了teaming技术,而在rhel6/centos7中使用的是bonding技术, 在centos7中双网卡绑定既能使用teaming也可以使用bonding,这里推荐使用teaming技术,方便与查看和监控。2. 原理 这里介绍两种最常见的双网卡绑定 阅读全文
posted @ 2022-08-10 17:34 一川烟草happy 阅读(802) 评论(0) 推荐(0)
摘要:第一步:对管理IP和业务IP进行确认 查看那些是业务IP,那些地址是管理IP 由于我的服务器上有装了saltstack自动化管理工具,所以可以批量查看! salt -E "192.168.30" cmd.run "ethtool enp130s0f0"|egrep "(192.168.30)|(Sp 阅读全文
posted @ 2022-08-10 17:32 一川烟草happy 阅读(1786) 评论(0) 推荐(0)
摘要:route add -net 134.0.0.0 netmask 255.0.0.0 dev eth0route del -net 134.161.123.0 netmask 255.255.255.0 静态路由 vi /etc/sysconfig/static-routes any net 134 阅读全文
posted @ 2022-08-10 17:30 一川烟草happy 阅读(3108) 评论(0) 推荐(0)
摘要:1、查看firewall服务状态 systemctl status firewalld 2、查看firewall的状态 firewall-cmd --state 3、开启、重启、关闭、firewalld.service服务 # 开启 service firewalld start # 重启 serv 阅读全文
posted @ 2022-08-10 17:30 一川烟草happy 阅读(105) 评论(0) 推荐(0)
摘要:1.用户组 添加组:groupadd 组名 [root@Server-n93yom ~]# groupadd dev [root@Server-n93yom ~]# cat /etc/group | grep dev dev:x:10011: [root@Server-n93yom ~]# 删除组: 阅读全文
posted @ 2022-08-10 17:29 一川烟草happy 阅读(95) 评论(0) 推荐(0)
摘要:第一步:使用free -m查看目前swap的交换空间情况,1019M,也可以使用grep SwapTotal /proc/meminfo查看[root@localhost swapimage]# free -m total used free shared buffers cachedMem: 10 阅读全文
posted @ 2022-08-10 17:29 一川烟草happy 阅读(1140) 评论(0) 推荐(0)
摘要:CentOS7 的防火墙配置跟以前版本有很大区别,CentOS7这个版本的防火墙默认使用的是firewall,与之前的版本Centos 6.x使用iptables不一样一、iptables防火墙1、基本操作# 查看防火墙状态service iptables status# 停止防火墙service  阅读全文
posted @ 2022-08-10 17:28 一川烟草happy 阅读(231) 评论(0) 推荐(0)
摘要:#!/bin/sh. ~/.bash_profileRES_9082=`curl http://127.0.0.1:9082/ifaceHN4O/services/operation?wsdl | wc -l`RES_9083=`curl http://127.0.0.1:9083/ifaceHN4 阅读全文
posted @ 2022-08-10 17:26 一川烟草happy 阅读(36) 评论(0) 推荐(0)
摘要:查看运行的后台进程 (1)jobs -l jobs命令只看当前终端生效的,关闭终端后,在另一个终端jobs已经无法看到后台跑得程序了,此时利用ps(进程查看命令) (2)ps -ef 1 ps -aux|grep chat.js a:显示所有程序 u:以用户为主的格式来显示 x:显示所有程序,不以终 阅读全文
posted @ 2022-08-10 17:15 一川烟草happy 阅读(463) 评论(0) 推荐(0)
摘要:查看一下流量 tcpdump host 192.*.*.* -XX -i ens192 抓包:tcpdump -i eth1 -s 0 -x -X host 192.*.*.* -w dump1.cap dhcp+ 华三 radius抓包:tcpdump -i bond0 host 192.*.*. 阅读全文
posted @ 2022-08-10 15:32 一川烟草happy 阅读(454) 评论(0) 推荐(0)