开启防火墙: systemctl start firewalld.service 开启3317端口 firewall-cmd --zone=public(作用域) --add-port=3317/tcp(端口和访问类型) --permanent(永久生效) 重启防火墙,运行命令: firewall- ...
分类:
其他好文 时间:
2020-08-03 23:32:23
阅读次数:
92
1. Install SSH service $ sudo apt install openssh-server$ systemctl status sshd$ sudo systemctl restart ssh$ sudo ufw allow ssh$ sudo systemctl enable ...
分类:
系统相关 时间:
2020-08-02 19:56:16
阅读次数:
128
首先准备三台虚拟机,三台机器所有配置是一样的,这里以node1节点为例 ip地址 主机名 192.168.1.201 node1 192.168.1.202 node2 192.168.1.203 node3 关闭防火墙 systemctl stop firewalld.service 修改/etc ...
分类:
其他好文 时间:
2020-08-02 16:15:02
阅读次数:
89
解决办法: # vi /etc/sysctl.conf 或者 # vi /usr/lib/sysctl.d/00-system.conf 添加如下代码: net.ipv4.ip_forward=1 重启network服务 # systemctl restart network 查看是否修改成功 # ...
分类:
Web程序 时间:
2020-08-01 21:28:36
阅读次数:
105
linux中mysql忘记root密码如何登陆 1.关闭mysql服务 systemctl stop mysqld netstat -tunlp|grep mysqld 2.进入配置文件添加一条命令 [mysqld] skip-grant-tables #以安全模式启动 3.重新启动服务 syste ...
分类:
数据库 时间:
2020-08-01 12:45:26
阅读次数:
120
Registry*有时候使用DockerHub这样的公共仓库可能不方便,用户可以创建一个本地仓库供私人使用。*docker-registry是官方提供的工具,可以用于构建私有的镜像仓库。注:*随着docker使用的镜像越来越多,就需要有一个保存镜像的地方,这就是仓库。*目前常用的两种仓库:公共仓库和私有仓库。最方便的就是使用公共仓库上传和下载,下载公共仓库的镜像是不需要注册的,但是上传时,是需要注
分类:
其他好文 时间:
2020-07-30 18:29:36
阅读次数:
87
#1.1 kafka启动命令nohup bin/kafka-server-start.sh config/server.properties & #1.2 kafka停止命令bin/kafka-server-stop.sh #1.3. kafka重启systemctl restart kafka # ...
分类:
其他好文 时间:
2020-07-30 14:45:42
阅读次数:
79
【RHEL8】—NFSserver ;【Centos7】—NFSclient !!!测试环境我们首关闭防火墙和selinux(NFSserver和NFSclient都需要) [root@localhost ~]# systemctl stop firewalld [root@localhost ~] ...
分类:
系统相关 时间:
2020-07-29 17:51:31
阅读次数:
90
通过修改ifcfg-eno16777728配置文件来修改配置ip 网卡命令格式:eno16777728 en:代表enthernet(以太网) o:代表onboard(内置) 16777728:是主板的某种索引编号自动生成的,保证其唯一性 [root@localhost ~]# vim /etc/s ...
分类:
其他好文 时间:
2020-07-29 10:02:22
阅读次数:
67
主机: master:192.168.199.231 slave:192.168.199.231 maste和slave都安装mariadb yum install mariadb mariadb-server systemctl start mariadb #启动mariadb systemctl ...
分类:
数据库 时间:
2020-07-28 00:24:02
阅读次数:
78