环境:CentOS 8 主服务器:10.0.0.8 从服务器:10.0.0.28 访问测试主机:10.0.0.6 一、安装DNS服务器软件 bind dnf install bind bind-utils -y ; systemctl enable --now named 二、修改主服务器 bind ...
分类:
其他好文 时间:
2020-07-27 13:38:09
阅读次数:
65
工作中部署的开源软件很多需要进到程序的bin目录执行start,每次都需要进入目录,而且不便于管理。将这类服务或者自开发的程序添加到systemctl管理起来就方便很多。 #一、systemd配置文件 systemd 默认从目录/etc/systemd/system/读取配置文件,但里面存放的大部分 ...
分类:
其他好文 时间:
2020-07-27 09:17:45
阅读次数:
131
系统版本:CenOS 7 Min 主要思路: 1:开启防火墙3306接口,或者关闭防火墙 2:在mysql中设置允许通过什么账户,什么密码访问 3:更新mysql权限 步骤一:开启防火墙3306接口,或者关闭防火墙(并记录一下相关命令) 关闭防火墙(使用) systemctl stop firewa ...
分类:
数据库 时间:
2020-07-26 19:40:25
阅读次数:
81
参考原文链接:https://blog.csdn.net/cool_summer_moon/article/details/78744009 CentOS 8 默认使用的是firewall作为防火墙, 使用systemctl来管理服务和程序,包括了 service 和 chkconfig 。 查看防 ...
分类:
其他好文 时间:
2020-07-26 19:15:24
阅读次数:
88
b for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. 1.按照 ...
分类:
其他好文 时间:
2020-07-26 15:55:41
阅读次数:
180
一、查看系统防火墙状态(如果返回running代表防火墙启动正常)firewall-cmd--state二、开启端口外网访问1、添加端口返回success代表成功(--permanent永久生效,没有此参数重启后失效)firewall-cmd--zone=public--add-port=80/tcp--permanentfirewall-cmd--zone=public--add-port=44
分类:
系统相关 时间:
2020-07-26 11:19:05
阅读次数:
133
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["阿里云镜像加速器"] } EOF sudo systemctl daemon-reload sudo systemc ...
分类:
其他好文 时间:
2020-07-26 00:59:37
阅读次数:
99
docker 容器使用 systemctl 命令是报错 看了许多解决方案,但是对于新手来说并不友好,不是特别清楚 报错内容: System has not been booted with systemd as init system (PID 1). Can't operate. Failed t ...
分类:
其他好文 时间:
2020-07-24 16:18:05
阅读次数:
82
源文件安装 在CentOS和Red Hat系统中,首先添加EPEL仓库,然后更新yum源: sudo yum install epel-release sudo yum update 然后安装Redis数据库: sudo yum -y install redis 安装好后启动Redis服务即可: s ...
分类:
其他好文 时间:
2020-07-24 15:34:03
阅读次数:
67
一、环境配置 1.1 系统信息 CentOS Linux release 7.6.1810 (Core) 3.10.0-957.27.2.el7.x86_64 2.2 准备环境 a. 关闭防火墙 systemctl stop firewalld systemctl disable firewalld ...
分类:
其他好文 时间:
2020-07-24 13:25:50
阅读次数:
123