2024年5月17日

Linux 策略路由

摘要: 一、多网卡,多公网IP,策略路由配置 1、配置路由表 1、安装 # apt install iproute2 2、添加路由表 # cat /etc/iproute2/rt_tables 10 10 #ens224 11 11 #ens192 2、配置网卡 1、网卡的配置# cat /etc/netp 阅读全文

posted @ 2024-05-17 10:20 五光十色 阅读(97) 评论(0) 推荐(0) 编辑

2023年10月16日

ubuntu 开启rc.local

摘要: 1、创建rc.local.service服务的软链接 ln -s /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service touch /etc/rc.local chmod +x /etc/rc.local 阅读全文

posted @ 2023-10-16 16:52 五光十色 阅读(517) 评论(0) 推荐(0) 编辑

2023年9月4日

云主机无损扩容根目录

摘要: 1、查看根大小及文件系统类型 # df -Th 2、查看硬盘大小 3、重新分区 # fdisk /dev/sda 4、调整大小 根据文件系统类型,使用适当的命令: 对于ext4: #sudo resize2fs /dev/sda1 对于XFS: #sudo xfs_growfs /dev/sda1 阅读全文

posted @ 2023-09-04 10:10 五光十色 阅读(28) 评论(0) 推荐(0) 编辑

2023年8月11日

华为策略路由

摘要: 1、配置ACL规则 acl 3000 rule permit ip source 192.168.1.0 0.0.0.255 2、配置流分类 traffic classifier c1 operator and if-match acl 3000 3、配置流行为 traffic behavior b 阅读全文

posted @ 2023-08-11 17:10 五光十色 阅读(52) 评论(0) 推荐(0) 编辑

2023年6月7日

vpn部署

摘要: 一、openvpn 1、安装 1、配置yum源 # more docker.repo [os] name=os baseurl=https://mirrors.aliyun.com/centos/7/os/x86_64/ enabled=1 gpgcheck=0 [epel] name=epel b 阅读全文

posted @ 2023-06-07 11:19 五光十色 阅读(9) 评论(0) 推荐(0) 编辑

2023年5月29日

zabbix 监控主机并钉钉报警

摘要: 1、安装客户端 # yum install zabbix-agent-5.0.32-1.el8.x86_64.rpm 2、配置客户端 # egrep -v '^$|^#' /etc/zabbix/zabbix_agentd.conf PidFile=/var/run/zabbix/zabbix_ag 阅读全文

posted @ 2023-05-29 14:03 五光十色 阅读(822) 评论(0) 推荐(0) 编辑

2023年5月9日

docker 部署 Prometheus

摘要: 1、部署node_exporter数据采集 docker run -d --name=node-exporter \ --restart=always \ -p 9100:9100 \ -v "/proc:/host/proc:ro" \ -v "/sys:/host/sys:ro" \ -v "/ 阅读全文

posted @ 2023-05-09 18:01 五光十色 阅读(1798) 评论(0) 推荐(0) 编辑

docker部署zabbix

摘要: 1、部署mysql # docker run --name mysql-server -t \ -v /data/mysql/data:/var/lib/mysql \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PA 阅读全文

posted @ 2023-05-09 14:58 五光十色 阅读(362) 评论(0) 推荐(0) 编辑

2023年2月2日

华为 bgp案例

摘要: 1、实验拓扑图 2、实验步骤 1、配置设备的ip地址 1、R1 sys sysname R1 [R1] int g0/0/0 [R1] ip add 10.0.12.1 24 [R1] undo shut [R1] int g0/0/1 [R1] ip add 10.0.13.1 24 [R1] i 阅读全文

posted @ 2023-02-02 16:34 五光十色 阅读(421) 评论(0) 推荐(0) 编辑

2022年11月22日

rabbitmq

摘要: 1、docker启动 FROM docker.io/rabbitmq:3.7.14 LABEL description="2022-11" COPY Shanghai /etc/localtime RUN echo 'Asia/Shanghai' >/etc/timezone 2、打包镜像 # do 阅读全文

posted @ 2022-11-22 18:44 五光十色 阅读(22) 评论(0) 推荐(0) 编辑

导航