原创 cisco交換機DHCP分配靜態IP
這裏我們以vlan31進行描述 ip dhcp pool vlan31network 172.31.255.0 255.255.255.0default-router 172.31.255.254 dns-server 202.96.209
原创 CentOS 7上安裝配置FirewallD防火牆詳解
轉載:https://www.linuxidc.com/Linux/2018-11/155155.htm 正確配置的防火牆是整個系統安全性中最重要的方面之一。 FirewallD是一個完整的防火牆解決方案,用於管理系統的iptables規則
原创 思科交換機清除密碼
轉載:https://blog.csdn.net/lychace/article/details/51648303 1)拔下交換機電源,用手按住交換機“Mode” 按鈕,插上電源,等待交換機進入控制檯模式。其提示符爲“switch:”2)s
原创 cisco思科交換機恢復出廠設置清除配置的方法
轉載:https://blog.51cto.com/304514244/1555230 方法1: 開機狀態下 F3-2F#erase startup-config Erasing the nvram filesystem will rem
原创 docker 升級 on Centos
1、查看可升級的版本的versionsudo yum list docker-ce --showduplicates | sort -r 2、根據版本號version升級sudo yum install docker-ce-<VERSION
原创 CentOS 一個網卡設置多個IP
1、增加網卡配置文件[root@basic ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3:0DEVICE="enp0s3:0"BOOTPROTO="static"IPADDR=10.
原创 cisco交換機如何清除密碼or恢復出廠值?
轉載:https://jingyan.baidu.com/article/e5c39bf5ff982339d660336e.html 進入交換機底層,通過修改交換機原始配置文件名字,重啓交換機後,交換機找不到原來配置文件情況下,就會加載默認
原创 5分鐘理解Centos7防火牆firewalld
轉載:http://www.cnblogs.com/stevenzeng/p/5152324.html 1、firewalld的基本使用啓動: systemctl start firewalld查看狀態: systemctl status
原创 ping命令顯示時間
awk顯示ping的時間ping 127.0.0.1 | awk '{ print $0"\t" strftime("%Y-%m-%d %H:%M:%S",systime()) }' 註釋:\t //換行字符 $0 //打印整行{pri
原创 CentOS 7 爲firewalld添加開放端口及相關資料
轉載:https://www.cnblogs.com/hubing/p/6058932.html 1、安裝、運行、停止、禁用firewalld 安裝:# sudo yum install firewalld 啓動:# systemctl s
原创 docker環境部署
參考官方鏈接:https://docs.docker.com/install/linux/docker-ce/centos/ 初始化: 1、關閉selinux 2、如果你的數控盤不再根目錄,比如在 /data目錄,可以通過軟鏈接的方式,將d
原创 利用shell對小型站點文件備份腳本
[root@localhost html]# cat backup.sh#! /bin/sh t=$(date +%y%m%d%H%M)webdir=/var/www/htmlbackupdir=/var/www/html/backupda
原创 nfs數據持久化
1、服務器端安裝nfs:yum install nfs-utils -y配置nfs:[root@basic opt]#mkdir -p /opt/container_data並製作一些測試數據: [root@basic opt]# cat
原创 Juniper SSG5-Serial 配置
接口信息總覽 Network Interfaces List 接口說明: ethernet0/0 外網接口 ethernet0/1 DMZ接口 ethernet0/6 內網接口 路由信息 MTP信息 若需要將DMZ區
原创 Ubuntu 16.04 重置密碼(忘記密碼)
http://blog.topspeedsnail.com/archives/6042https://blog.csdn.net/lxllinux/article/details/81910507 忘記了你的Ubuntu用戶密碼,登錄不了系