优化项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
一、用户界面:(1)GUI:GNomeKDE(2)CLI:bash,zsh,sh,csh,tchs,ksh查看所用的SHELL类型~]#echo#SHELL二、远程连接查看:ssh协议:sercureshell~]#ss-tnl查看系统是否监听于TCP协议的22号端口~]ipaddrelist或~]ifconfig查看IP地址三、确保防火墙处于关闭状态~]#iptables-L-n~]#iptab
分类:
系统相关 时间:
2020-04-13 14:04:13
阅读次数:
95
先去官网下载压缩包 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
开源博客下载; Linux安装docker,配置自动重启docker里面的redis 安装tomcat,配置tomcat自启。同时把war包打进。 剩余:前端工程打包,配置nginx一并挂到开机自启 问题: Linux重启之后,docker里面的服务外部访问不了。iptables转发正常。只能重启L ...
分类:
其他好文 时间:
2020-04-13 00:35:01
阅读次数:
81
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
背景: 最近因业务需要,需要允许内网服务器上网,因为本身没有硬件防火墙做网关,暂时只能用iptables做nat转发上网了. 直接上拓扑图,说明如下: lvs_master和lvs_slave都有两块网卡,外网卡连接上联交换机、内网卡连接内网交换机。 lvs_master 外网卡地址:192.168 ...
分类:
其他好文 时间:
2020-04-09 22:54:09
阅读次数:
118
请参考博客 : http://blog.chinaunix.net/uid-27057175-id-5119553.html 大概可以认为这两个东西是一个东西,可以相互代替,不过conntrack是用来代替state的 网上说state就是conntrack 的 alias iptables sta ...
分类:
其他好文 时间:
2020-04-09 16:39:09
阅读次数:
185