关闭防火墙和selinux:systemctl stop firewalld.servicesetenforce 0永久关闭防火墙和selinux:systemctl disable firewalld.servicesed -i ‘/^SELINUX/s#enforcing#disabled#g’ ...
分类:
数据库 时间:
2020-04-19 13:02:14
阅读次数:
70
1.查看防火墙状态 [root@localhost ~]# systemctl status firewalld 2. 临时关闭 [root@localhost ~]# systemctl stop firewalld 3.永久关闭 [root@localhost ~]# systemctl dis ...
分类:
系统相关 时间:
2020-04-18 12:15:51
阅读次数:
77
优化项1、关闭selinux、关闭firewalld(centos7)/iptables(centos6)2、修改字符集3、精简开机启动项4、修改最大文件描述符5、修改yum源及安装常用工具6、优化系统内核7、优化ssh登录速度8、禁用ctrl+alt+del重启9、设置时间同步10、history优化1、关闭selinux、关闭防火墙a/关闭selinux[root@gitlab~]#sed-i
分类:
其他好文 时间:
2020-04-13 15:32:36
阅读次数:
84
#!/bin/sh./etc/rc.d/init.d/functionsexportLANG=zh_CN.UTF-8#一级菜单menu1(){clearcat<<EOF----------------------------------------|****欢迎使用cetnos6.5优化脚本****----------------------------------------1.一键
分类:
其他好文 时间:
2020-04-13 15:29:24
阅读次数:
80
先去官网下载压缩包 https://download.docker.com/linux/static/stable/x86_64/,也可以用zypper进行安装 配置: iZbp145axkc98giot5b448Z:/ # cat /etc/issue Welcome to SUSE Linux ...
分类:
其他好文 时间:
2020-04-13 10:41:55
阅读次数:
237
systemctl stop firewalld 关闭防火墙 systemctl status firewalld 查看状态 systemctl disable firewalld 不启动 systemctl enable firewalld 启动 如果使用 service iptables sto ...
分类:
其他好文 时间:
2020-04-12 10:25:32
阅读次数:
65
[root@localhost ~]#firewall-cmd --state not running [root@bigdata hadoop]# systemctl is-enabled firewalld.service;echo $? (查看服务是否开机启动) enabled 0 [root ...
分类:
系统相关 时间:
2020-04-11 18:17:13
阅读次数:
249
防火墙的开启和关闭: 查看防火墙状态 systemctl status firewalld #Active: inactive (dead) --表示防火墙已经关闭 临时关闭防火墙 systemctl stop firewalld 临时打开防火墙 systemctl start firewalld ...
分类:
系统相关 时间:
2020-04-10 00:44:13
阅读次数:
86
列出所有服务:systemctl list-unit-files 列出运行中的服务:systemctl list-units 列出所有失败的服务:systemctl --failed 检查单个服务是否启用:systemctl is-enabled mysqld.service 查看单个服务的状态:s ...
分类:
其他好文 时间:
2020-04-09 15:24:32
阅读次数:
474
在外部访问CentOS中部署应用时,需要关闭防火墙。 1、Centos7默认安装了firewalld,如果没有安装的话,可以使用 yum install firewalld firewalld-config进行安装。 2、关闭防火墙命令:systemctl stop firewalld.servic ...
分类:
系统相关 时间:
2020-04-07 23:56:45
阅读次数:
130