属于我的梦,明明还在
个人工具站/博客持续更新中用于技术层面探讨 http://rhx0306.online/
11 2022 档案
安装 rar 命令
摘要:安装部署包wget --no-check-certificate http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gztar -xvf rarlinux-4.0.1.tar.gzcd rarmake && make install #这里的话就可以正常使用 阅读全文
posted @ 2022-11-30 14:52 属于我的梦,明明还在 阅读(60) 评论(0) 推荐(0)
mysql导入sql文件失败 报错:Variable 'time_zone' can't be set to the value of 'Null'
摘要:Mysql配置文件(/etc/mysql/conf.d/my.conf)添加: max_allowed_packet=1024M 重启Mysql服务: systemctl restart mysql 阅读全文
posted @ 2022-11-30 13:05 属于我的梦,明明还在 阅读(589) 评论(0) 推荐(0)
开启IPV4转发
摘要:启用IP路由转发功能: 1) #echo 1 > /proc/sys/net/ipv4/ip_forward 2) #sysctl -w net.ipv4.ip_forward=1 以上两种方法都可能立即开启路由功能,但如果系统重启,或执行了 #systemctl restart network 永 阅读全文
posted @ 2022-11-25 18:12 属于我的梦,明明还在 阅读(1289) 评论(0) 推荐(0)
Linux将文件中数字排序 sort 命令
摘要:将数字按,从大到小排序 sort -n -r test.txt 将数字以从小到大排序 sort -n test.txt 将文档按分隔符分割,并进行排序 -k :打印第几列 -t :指定分隔符 不加默认空格 sort -n -r -k2 -t : test 阅读全文
posted @ 2022-11-21 13:39 属于我的梦,明明还在 阅读(617) 评论(0) 推荐(0)
linux获取TCP连接数
摘要:方法一: [admin@zabbix ~]$ ss -ant | awk 'NR>1 {a[$1]++} END {for (b in a) print b,a[b]}' ESTAB 535 TIME-WAIT 80 LISTEN 13 方法二: [admin@zabbix ~]$ netstat 阅读全文
posted @ 2022-11-08 12:13 属于我的梦,明明还在 阅读(241) 评论(0) 推荐(0)