[root@localhost ~]# uuidgen ens33223bdb47-2fed-4773-b984-5f5733e619042.UUID号写入网络配置文件ifcfg-ens33NAME=ens33DEVICE=ens33ONBOOT=yesUUID=223bdb47-2fed-4773 ...
分类:
系统相关 时间:
2021-04-08 14:02:02
阅读次数:
0
一、 环境和版本 1. 操作系统 干干静静的centos7系统,选取的是mini的iso最小化安装 # cat /etc/centos-release CentOS Linux release 7.3.1611 (Core) # cat /proc/version Linux version 3.1 ...
分类:
其他好文 时间:
2021-04-08 13:37:16
阅读次数:
0
1、查找/var目录下属主为root,且属组为mail的所有文件 有目录没有文件,-type f [14:29:30 root@centos7 ~]#find /var -user root -a -group mail -ls 67142179 4 drwxrwxr-x 2 root mail 4 ...
分类:
其他好文 时间:
2021-04-08 13:25:06
阅读次数:
0
在centos7.5中解决bash: pip:command not find 问题 [root@localhost ~]# python get-pip.py Hi there! The URL you are using to fetch this script has changed, and ...
分类:
其他好文 时间:
2021-04-08 13:04:02
阅读次数:
0
一、iptables防火墙 1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # ...
分类:
系统相关 时间:
2021-04-07 11:31:55
阅读次数:
0
安装是需要的环境 一. gcc 安装安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: yum install gcc-c++ 二. PCRE pcre-devel 安装PCRE(Perl Compatible Regular Expres ...
分类:
其他好文 时间:
2021-04-06 14:41:24
阅读次数:
0
部署prometheus监控端mkdir /opt/monitor/[root@zabbix ~]# tar -xf prometheus-2.25.0.linux-amd64.tar.gz -C /opt/monitor/[root@zabbix ~]# mv prometheus-2.25.0. ...
分类:
其他好文 时间:
2021-04-06 14:27:18
阅读次数:
0
1. 安装需要的软件 ~]# yum install -y vim net-tools sysstat createrepo mkisofs rsync syslinux 2. 创建目录及文件拷贝 创建本地yum源 ~]# mount /dev/sr0 /mnt #挂载镜像或者U盘,如果是U盘就是/ ...
分类:
其他好文 时间:
2021-04-06 14:20:16
阅读次数:
0
一、iptables常用命令 #查看已有的防火墙规则链 iptables -L #清空已有的防火墙规则链 iptables -F #把 INPUT 规则链的默认策略设置为拒绝 iptables -P INPUT DROP #向 INPUT 链中添加允许 ICMP 流量进入的策略规则 iptables ...
分类:
系统相关 时间:
2021-04-05 11:55:37
阅读次数:
0
执行yum命令失败 系统: centos7.8 可以通过以下命令解决 #cd /var/lib/rpm# lsBasenames __db.001 __db.003 Group Name Packages Requirename Sigmd5Conflictname __db.002 Dirname ...
分类:
数据库 时间:
2021-04-05 11:46:34
阅读次数:
0