logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

linux垃圾回收站 持续更新

文章参考:https://www.linuxprobe.com/rm-saferm-trash.html文章参考:https://www.cnblogs.com/kerrycode/p/12931844.html安装脚本下载地址git clone https://github.com/lagerspetz/linux-stuffcurl -O http://8.210.62.122/Linux/s

#linux
还原linux系统自带的python2

没想到视力下降的如此之快 前面删完yum 又删掉了python注意我的服务器版本为centos 7.9163rpm7.9下载源wget http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/python-2.7.5-89.el7.x86_64.rpmrpm -ivh python-2.7.5-89.el7.x86_64.rpm缺少什么依

#linux
将redis中的一个db库转移到另一个db库 python3 (持续更新)

redis添加不同类型数据127.0.0.1:6379> select 1OK127.0.0.1:6379[1]>mset name yingjian age 22 company feitian country china127.0.0.1:6379[1]> hset user name zhangsan127.0.0.1:6379[1]> lpush list1 123

#redis#linux
ES命令行查询es集群的状态、分片、索引

查看es集群状态curl -XGET -uelastic -p http://172.18.35.144:9200/_cat/health?vcluster ,集群名称status,集群状态 green代表健康;yellow代表分配了所有主分片,但至少缺少一个副本,此时集群数据仍旧完整;red代表部分主分片不可用,可能已经丢失数据。node.total,代表在线的节点总数量node.data,代表

#elk
iptables 限制所有ip访问22端口,仅开放个别ip访问 持续更新

查看当前iptables 规则[root@iZwz9conqz5shxfx2gmnfkZ ~]# iptables -nvL添加已经建立tcp连接,就开放网络访问iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT添加允许访问22端口的ipiptables -A INPUT -s 8.210.62.122 -p tcp -

#linux
暂无文章信息