1. 创建服务配置文件 [root@localhost ~]# cat /etc/systemd/system/test.service [Unit] Description=test Service After=syslog.target [Service] User=root ExecStart ...
分类:
其他好文 时间:
2020-06-30 22:12:40
阅读次数:
56
1. 关闭NetworkManager服务 systemctl stop NetworkManager systemctl disable NetworkManager 2. 加载bond模块 modprobe bonding miimon=100 mode=0 echo "alias bond0 ...
分类:
其他好文 时间:
2020-06-30 12:47:24
阅读次数:
60
本操作基于 CentOS7.6操作系统 redis版本为 6.0.5 关闭防火墙以及selinux 关闭防火墙 iptables -F #临时关闭防火墙 systemctl stop firewalld # 关闭防火墙 systemctl disable firewalld # 开机防火墙不启动 关 ...
分类:
其他好文 时间:
2020-06-30 10:58:40
阅读次数:
60
docker-registry搭建 什么是registry呢? 简单的说就是自己的仓库,自己做好的镜像往上面push,用的时候再拉下来就可以了。 1、从docker仓库拉registry私服仓库镜像(我本机配了啊里的加速所以比较快) [root@t2 ~]# docker pull registry ...
分类:
其他好文 时间:
2020-06-30 00:35:01
阅读次数:
71
sudo pm2 start xxxx // 启动服务 sudo pm2 save // 保存服务 sudo pm2 startup // 把已启动服务加到systemd中 sudo systemctl reboot // 重启,发现之前的服务都已经启动 sudo pm2 unstartup sys ...
分类:
其他好文 时间:
2020-06-29 18:37:12
阅读次数:
263
概念 PV 的全称是:PersistentVolume(持久化卷),是对底层的共享存储的一种抽象,PV 由管理员进行创建和配置,它和具体的底层的共享存储技术的实现方式有关,比如 Ceph、GlusterFS、NFS 等,都是通过插件机制完成与共享存储的对接。 PVC 的全称是:PersistentV ...
分类:
其他好文 时间:
2020-06-29 11:40:03
阅读次数:
53
上一篇文章中,我们已经学会了怎样使用iptables命令查看规则,那么这篇文章我们就来总结一下,怎样管理规则。 之前,我们把查看iptables规则的操作比作"增删改查"当中的"查",那么在这篇文章中,我们就聊聊怎样对iptables进行"增、删、改"操作。 注意:在参照本文进行iptables实验 ...
分类:
其他好文 时间:
2020-06-28 20:46:47
阅读次数:
46
工具/原料 阿里云服务器centos 方法/步骤 执行firewall-cmd --permanent --zone=public --add-port=3306/tcp,提示FirewallD is not running,如下图所示。 通过systemctl status firewalld查看 ...
分类:
其他好文 时间:
2020-06-28 18:57:58
阅读次数:
49
1. 安装 BIND 服务器软件并启动 yum -y install bind bind-utils systemctl start named.service // 启动服务 systemctl enable named // 设为开机启动 1.1. 查看named进程是否正常启动 ps -eaf ...
分类:
其他好文 时间:
2020-06-28 13:19:41
阅读次数:
82
1、 centos6的网卡重启方法: service network restart centos7的网卡重启方法: systemctl restart network 2、DNS配置文件:cat /etc/resolv.conf 设置主机和IP绑定信息:cat /etc/hosts 设置主机名:c ...
分类:
其他好文 时间:
2020-06-28 11:14:20
阅读次数:
50