在可以访问外网的机器配置如下首先确认防火墙是开启的1、开启ip_forward转发: vim /etc/sysctl.conf net.ipv4.ip_forward=1 #添加 sysctl -p #使其生效 2、转发内网段的流量执行如下firewalld命令: firewall-cmd --ad ...
分类:
Web程序 时间:
2020-04-24 20:01:18
阅读次数:
80
1.怎么查看系统发行版? 2.Linux下UID,GID是什么? 3.怎么切换用户? 4.创建/删除用户? 5.pyyu用户无法执行此命令怎么办? ls /root 6.linux文件权限有哪些?顺序是?文件权限设计的用户身份是? 7.请说出 755, 740分别是什么权限? 8.修改文件权限为只有 ...
分类:
系统相关 时间:
2020-04-22 13:29:06
阅读次数:
103
关闭防火墙和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