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
1.部署linux环境,关闭防火墙[root@chaogelinux ~]# iptables -F[root@chaogelinux ~]# systemctl stop firewalld[root@chaogelinux ~]# systemctl disable firewalld[root ...
分类:
其他好文 时间:
2020-07-24 09:40:29
阅读次数:
79
我们把Swoole主服务程序做成系统服务后,这个服务一般是在后台运行的,如我们之前的邮件服务和聊天服务,我们希望把这些服务添加到系统环境中,可以随机器自启动,可以管理swoole服务的启动、停止和重启服务。 前言 我们在之前的Swoole实验室中的几个例子中,如果要启动swoole服务,需要手动执行 ...
分类:
其他好文 时间:
2020-07-24 09:20:42
阅读次数:
89
#使用限制 本教程示例步骤适用于以下软件版本: 操作系统:公共镜像CentOS 7.2 64位 Nginx版本:Nginx 1.16.1 MySQL版本:MySQL 5.7.28 PHP版本:PHP 7.0.33 操作流程 步骤一:准备编译环境 关闭防火墙。 运行systemctl status f ...
分类:
其他好文 时间:
2020-07-23 16:44:05
阅读次数:
96
启动服务 [root@localhost fastdfs]# service fdfs_trackerd start Reloading systemd: [ OK ] Starting fdfs_trackerd (via systemctl): Job for fdfs_trackerd.ser ...
分类:
其他好文 时间:
2020-07-22 20:38:49
阅读次数:
314
首先修改配置文件 vi /etc/ssh/sshd_config 找到#Port 22一段,这里是标识默认使用22端口,修改为如下: Port 22 Port 18522 然后保存退出 6.5版本:/etc/init.d/sshd restart 7.4版本:systemctl restart ss ...
分类:
系统相关 时间:
2020-07-22 20:36:23
阅读次数:
110
【Docker 本体操作相关】 检查Docker版本: docker -v 检查Docker当前状态: systemctl status docker 停止Docker与开启Docker systemctl stop docker systemctl start docker 设置Linux开机自启 ...
分类:
其他好文 时间:
2020-07-22 01:53:38
阅读次数:
68
step1:下载mysql源安装包:wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm step2:安装MySQL源:yum localinstall mysql57-community-release-e ...
分类:
数据库 时间:
2020-07-21 23:05:16
阅读次数:
93