sky_cheng

导航

 
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页

2023年1月6日

摘要: 一、hosts.deny和hosts.allow hosts.deny和hosts.allow是成对出现的,当有一个主机想要访问我们的系统的时候,会经过黑白名单的确认,白名单的优先级高于黑名单,如果访问的ip出现在了hosts.allow文件中,就直接通行,否则会到hosts.deny黑名单,如果在 阅读全文
posted @ 2023-01-06 15:09 sky_cheng 阅读(1274) 评论(0) 推荐(0) 编辑
 

2022年10月19日

摘要: root@38fffa7c9485:/# uname -a Linux 38fffa7c9485 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 GNU/Linux root@38fffa7c9485:/# root 阅读全文
posted @ 2022-10-19 10:27 sky_cheng 阅读(47) 评论(0) 推荐(0) 编辑
 

2022年10月18日

摘要: 一、下载安装包 [root@glusterfs03 ~]# wget https://download.redis.io/releases/redis-6.2.7.tar.gz --2022-10-18 10:35:21-- https://download.redis.io/releases/re 阅读全文
posted @ 2022-10-18 10:52 sky_cheng 阅读(227) 评论(0) 推荐(0) 编辑
 

2022年10月17日

摘要: 一、首先exsi管理台里对目标虚拟机进行硬盘扩容 从原来的20GB扩容到50GB 二、将新扩容的30GB空间进行fdisk分区,或者直接使用pvcreate 建立物理卷 建立物理卷:pvcreate /dev/sdb 成功后,跳过以下fdisk分区,执行第三步 lsblk可以看到硬盘变成50GB,但 阅读全文
posted @ 2022-10-17 13:57 sky_cheng 阅读(976) 评论(0) 推荐(0) 编辑
 

2022年10月12日

摘要: alpine 的apk源地址设置在 /etc/apk/repositories文件里 设置为阿里源 sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories 设置为科大源 sed -i 's/dl-cdn 阅读全文
posted @ 2022-10-12 09:03 sky_cheng 阅读(2767) 评论(0) 推荐(0) 编辑
 

2022年9月30日

摘要: 一、在esxi虚拟机后台为两台虚拟机增加第二块网卡用于管理口 参考:linux esxi虚拟机双网卡设置 二、配置双网卡参数 sbc-1 业务网卡:ens192 管理网卡:ens224 ens192配置: [root@localhost ~]# vim /etc/sysconfig/network- 阅读全文
posted @ 2022-09-30 11:38 sky_cheng 阅读(158) 评论(0) 推荐(0) 编辑
 

2022年9月28日

摘要: 一、在esxi后台为虚拟机添加一个网卡 二、在虚拟机ssh登录,ip a可以看到新增的网卡 三、执行nmtui 图形化配置网卡 选择add 增加一个连接 选择Ethernet profile name 填写ens224 device 填写 ens224 ipv4配置为手动 填写IP172.28.17 阅读全文
posted @ 2022-09-28 14:36 sky_cheng 阅读(3359) 评论(0) 推荐(0) 编辑
 
摘要: 一、linux系统默认umask为022 [root@localhost ~]# umask 0022 查看umask值对应的权限 [root@localhost ~]# umask -S u=rwx,g=rx,o=rx 022对应的目录权限是:777-022=755 也就是 rwxr-xr-x 对 阅读全文
posted @ 2022-09-28 11:33 sky_cheng 阅读(516) 评论(0) 推荐(0) 编辑
 
摘要: 设置grub密码保护: 查看grub登录用户名cat /etc/grub.d/01_users,可以看到用户名为root。 通过grub2-setpasswords设置grub密码 确认密码 cat /boot/grub2/user.cfg 重启后进入grub需要用户名和密码 [root@local 阅读全文
posted @ 2022-09-28 10:21 sky_cheng 阅读(340) 评论(0) 推荐(0) 编辑
 

2022年8月22日

摘要: 一、安装sshpass yum install sshpass -y 二、生成rsa公钥和私钥 [root@glusterfs03 .ssh]# ssh-keygen -t rsa -f /root/.ssh/id_rsa [root@glusterfs03 .ssh]# ll /root/.ssh 阅读全文
posted @ 2022-08-22 16:41 sky_cheng 阅读(282) 评论(0) 推荐(0) 编辑
 
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页