随笔分类 -  linux

摘要:网络优化之net.ipv4.tcp_tw_recycle和tcp_tw_reuse参数 https://blog.csdn.net/weixin_30764771/article/details/98931049 网络优化之net.ipv4.tcp_tw_recycle参数 https://blog 阅读全文
posted @ 2022-06-10 17:53 tonggc1668 阅读(329) 评论(0) 推荐(0)
摘要:https://mlog.club/article/4007354 阅读全文
posted @ 2022-05-29 18:19 tonggc1668 阅读(423) 评论(0) 推荐(0)
摘要:# 关闭防火墙 systemctl disable firewalld --now# 关闭selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config sed -i 's#SELINUX=enforcing#S 阅读全文
posted @ 2022-05-29 15:52 tonggc1668 阅读(41) 评论(0) 推荐(0)
摘要:Kubernetes 部署 CentOS7.4 系统内核升级 https://blog.csdn.net/qq_34556414/article/details/119827902 k8s出现网络问题,升级centos7内核解决 https://blog.csdn.net/sinat_3675953 阅读全文
posted @ 2022-05-29 14:29 tonggc1668 阅读(35) 评论(0) 推荐(0)
摘要:#!/bin/bash #/etc/keepalived/check_mysql.sh #chmod u+x /etc/keepalived/check_mysql.sh if [ `ps -ef|grep -w "$0"|grep -v "grep"|wc -l` -gt 2 ];then exi 阅读全文
posted @ 2022-02-10 19:35 tonggc1668 阅读(33) 评论(0) 推荐(0)
摘要:RPM 命令 http://math.ecnu.edu.cn/~jypan/Teaching/Linux/command/rpm.htm Linux rpm 命令参数使用详解及强制安装和忽略依赖 https://blog.csdn.net/wzyzzu/article/details/4125090 阅读全文
posted @ 2022-02-09 19:26 tonggc1668 阅读(29) 评论(0) 推荐(0)
摘要:echo "$(date +'%F %T') nginx down, keepalived will stop" 2022-02-09 15:55:33 nginx down, keepalived will stop echo "`date "+%F %H:%M:%S"`" 2022-02-10 阅读全文
posted @ 2022-02-09 15:59 tonggc1668 阅读(40) 评论(0) 推荐(0)
摘要:/sbin/arping -I eth0 -c 5 -s 172.16.1.165 172.16.1.1 &>/dev/null组合命令清除全部arp缓存:arp -n|awk '/^[1-9]/{system("arp -d "$1)}' 阅读全文
posted @ 2022-02-08 19:01 tonggc1668 阅读(90) 评论(0) 推荐(0)
摘要:linux-90ii:/data/app # ls -l总用量 2762068-rw-r--r-- 1 root root 146799982 12月 30 10:57 jdk-8u311-linux-x64.tar.gzdrwxr-xr-x 2 root root 4096 1月 7 11:41 阅读全文
posted @ 2022-01-29 16:32 tonggc1668 阅读(115) 评论(0) 推荐(0)
摘要:[root@node3 network-scripts]# cat ifcfg-eth0 # Created by cloud-init on instance boot automatically, do not edit. # TYPE=Ethernet PROXY_METHOD=none BR 阅读全文
posted @ 2022-01-21 15:45 tonggc1668 阅读(536) 评论(0) 推荐(0)
摘要:系统SUSE Linux Enterprise Server 12 SP5 (x86_64) 1、打开/关闭/查看防火墙 防火墙的服务名称为:SuSEfirewall2.service 防火墙关停操作 systemctl start/stop/status SuSEfirewall2.service 阅读全文
posted @ 2022-01-19 10:08 tonggc1668 阅读(1771) 评论(0) 推荐(0)
摘要:Shell中EOF内容转义 1、在$符号前面加反斜杠,如: cat > test.sh <<EOF \$test EOF 如果不加,将转成实际的值。 2、给EOF加个双引号,如: cat > test.sh <<"EOF" $test EOF 阅读全文
posted @ 2022-01-11 19:27 tonggc1668 阅读(511) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/lslxdx/p/6566465.html 阅读全文
posted @ 2022-01-11 16:45 tonggc1668 阅读(28) 评论(0) 推荐(0)
摘要:Linux之进程信号(kill) https://zhuanlan.zhihu.com/p/421015097 阅读全文
posted @ 2022-01-11 16:44 tonggc1668 阅读(22) 评论(0) 推荐(0)
摘要:如果没有开启,可以使用该命令打开ip link set multicast on dev ens33,ens33是网卡名称。 ip link set dev eth0 multicast on ip link set multicast on dev eth0 阅读全文
posted @ 2022-01-11 11:14 tonggc1668 阅读(159) 评论(0) 推荐(0)
摘要:1、rpm包安装的,可以用 rpm -qa 看到,如果要查找某软件包是否安装,用 rpm -qa | grep "软件或者包的名字" 2、以deb包安装的,可以用 dpkg -l 看到。如果是查找指定软件包,用 dpkg -l | grep "软件或者包的名字" 3、yum方法安装的,可以用 yum 阅读全文
posted @ 2022-01-11 10:30 tonggc1668 阅读(298) 评论(0) 推荐(0)
摘要:Systemd 如何设置 开机启动 守护进程 https://blog.csdn.net/chenhao_c_h/article/details/92064209 Linux系统安全强化指南 https://zhuanlan.zhihu.com/p/450774477 https://www.fre 阅读全文
posted @ 2022-01-10 12:00 tonggc1668 阅读(215) 评论(0) 推荐(0)
摘要:关闭selinux(记得重启) 临时关闭: [root@localhost ~]# getenforce Enforcing [root@localhost ~]# setenforce 0 [root@localhost ~]# getenforce Permissive 永久关闭: [root@ 阅读全文
posted @ 2022-01-10 10:44 tonggc1668 阅读(41) 评论(0) 推荐(0)
摘要:scp -P 36000 -r /data/minio/run root@10.2.2.210:/data/minioscp -P 36000 -r /usr/lib/systemd/system/minio.service root@10.2.2.210:/usr/lib/systemd/syst 阅读全文
posted @ 2022-01-06 15:26 tonggc1668 阅读(28) 评论(0) 推荐(0)
摘要:1、 https://blog.csdn.net/weixin_34037515/article/details/91718547 cat /etc/firewalld/zones/public.xml修改/etc/firewalld/zones/public.xml<port protocol=" 阅读全文
posted @ 2022-01-04 09:38 tonggc1668 阅读(133) 评论(0) 推荐(0)