原文链接:https://www.jianshu.com/p/b9fab528dd6b 1、安装openssh-server sudo apt-get install openssh-server 2、开机自动启动ssh命令 sudo systemctl enable ssh 3、关闭ssh开机自动 ...
分类:
系统相关 时间:
2021-01-21 10:31:03
阅读次数:
0
原文链接 在多个 PHP 版本之间切换要查看 PHP 的默认安装版本,请运行:$ php -vPHP 7.2.7-0ubuntu0.18.04.2 (cli) (built: Jul 4 2018 16:55:24) ( NTS )Copyright (c) 1997-2018 The PHP Gr ...
分类:
Web程序 时间:
2021-01-20 12:16:01
阅读次数:
0
1.环境如下 主机名 IP 角色 2.部署前准备 1.环境准备,所有节点分别配置。 关闭防火墙: $ systemctl stop firewalld $ systemctl disable firewalld 关闭 selinux: $ sed -i 's/enforcing/disabled/' ...
分类:
其他好文 时间:
2021-01-20 12:03:09
阅读次数:
0
1.先将MySQL停止、 命令:systemctl stop mysqld #停掉MySQL 命令:systemctl status mysqld #查看状态 2.然后跳过授权表启动MySQL服务程序 这一步主要利用mysqld的 --skip-grant-tables选项 修改my.cnf配置,添 ...
分类:
数据库 时间:
2021-01-18 11:38:24
阅读次数:
0
ssh远程管理服务 1.1 ssh介绍 ssh远程管理服务 默认linux是安装了的,如果没有安装执行以下命令。 [root@linux-server ~]# yum install -y openssh* [root@linux-server ~]# systemctl start sshd op ...
分类:
其他好文 时间:
2021-01-18 11:03:05
阅读次数:
0
在centos6中的开机默认开机状态保存在/etc/inittab文件中,那centos7中会不会发生变化呢,我们不妨同样地查看centos7中的/etc/inittab文件: 1. systemctl get-default 2. systemctl set-default multi-user. ...
分类:
其他好文 时间:
2021-01-14 10:32:26
阅读次数:
0
edit config && add Port 2222 vi /etc/ssh/sshd_config 重启ssh服务 systemctl restart sshd.service 查看端口 sudo netstat -atlunp | grep sshd ...
分类:
系统相关 时间:
2021-01-13 10:51:14
阅读次数:
0
之前整理的是PostgreSQL9和PostGIS2的安装手册,最近在安装PostgreSQL13时发现由于版本过新,安装步骤略有不同,这里简单记录一下安装过程. 一 各软件包版本依赖关系检查 检查PostGIS、PostgreSQL、GEOS、GDAL、PROJ等各软件的版本依赖关系 http:/ ...
分类:
数据库 时间:
2021-01-11 11:27:02
阅读次数:
0
docker开机自启设置 命令:systemctl enable docker.service docker容器的开机自启 在使用docker run启动容器时,使用--restart参数来设置 例:# docker run -d --name mysql -p 3306:3306 --restar ...
分类:
其他好文 时间:
2021-01-11 10:57:00
阅读次数:
0
查看服务运行状态 [root@room4pc09 桌面]# systemctl status crond #查看服务运行状态 ● crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.servi ...
分类:
其他好文 时间:
2021-01-07 12:21:11
阅读次数:
0