码迷,mamicode.com
首页 >  
搜索关键字:systemctl    ( 2804个结果
Centos7创建systemctl服务
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
双网卡bond绑定
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
redis的编译安装
本操作基于 CentOS7.6操作系统 redis版本为 6.0.5 关闭防火墙以及selinux 关闭防火墙 iptables -F #临时关闭防火墙 systemctl stop firewalld # 关闭防火墙 systemctl disable firewalld # 开机防火墙不启动 关 ...
分类:其他好文   时间:2020-06-30 10:58:40    阅读次数:60
docker-registry搭建
docker-registry搭建 什么是registry呢? 简单的说就是自己的仓库,自己做好的镜像往上面push,用的时候再拉下来就可以了。 1、从docker仓库拉registry私服仓库镜像(我本机配了啊里的加速所以比较快) [root@t2 ~]# docker pull registry ...
分类:其他好文   时间:2020-06-30 00:35:01    阅读次数:71
PM2 实现 自动重启 node 服务 , 例如 服务器重启时,自动启动 之前的服务
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和pvc
概念 PV 的全称是:PersistentVolume(持久化卷),是对底层的共享存储的一种抽象,PV 由管理员进行创建和配置,它和具体的底层的共享存储技术的实现方式有关,比如 Ceph、GlusterFS、NFS 等,都是通过插件机制完成与共享存储的对接。 PVC 的全称是:PersistentV ...
分类:其他好文   时间:2020-06-29 11:40:03    阅读次数:53
iptables详解(3):iptables规则管理
上一篇文章中,我们已经学会了怎样使用iptables命令查看规则,那么这篇文章我们就来总结一下,怎样管理规则。 之前,我们把查看iptables规则的操作比作"增删改查"当中的"查",那么在这篇文章中,我们就聊聊怎样对iptables进行"增、删、改"操作。 注意:在参照本文进行iptables实验 ...
分类:其他好文   时间:2020-06-28 20:46:47    阅读次数:46
centos出现"FirewallD is not running"
工具/原料 阿里云服务器centos 方法/步骤 执行firewall-cmd --permanent --zone=public --add-port=3306/tcp,提示FirewallD is not running,如下图所示。 通过systemctl status firewalld查看 ...
分类:其他好文   时间:2020-06-28 18:57:58    阅读次数:49
CentOS7搭建DNS域名解析服务器
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
Centos7 重启网卡
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
2804条   上一页 1 ... 23 24 25 26 27 ... 281 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!