随笔分类 - linux
linux基础
摘要:1.安装步骤 yum -y install cockpit cockpit-dashboard cockpit-storaged cockpit-packagekit # 启动cockpit并设为开启自启动 systemctl enable --now cockpit.socket && syste
阅读全文
摘要:for i in `find . -name "*.log"`; do cat /dev/null >$i; done
阅读全文
摘要:#查看大文件(超过1G) find / -type f -size +1000000k | xargs ls -lat #删除log大文件 find / -name *.log -type f -size +1000000k | xargs rm
阅读全文
摘要:一、tcpreplay安装 yum -y install tcpreplay 查看安装是否成功: tcpreplay -V 安装成功显示如下版本信息 二、使用 (1)快速使用 tcpreplay -i eth0 p.pcap (2)高级使用 查看本机网卡 tcpreplay --listnics 将
阅读全文
摘要:https://blog.51cto.com/vaedit/2573233
阅读全文
摘要:1、查看有那些组安装包可用。 yum grouplist | more 2、搜索development。 yum grouplist | grep development 3、安装Development Tools这个包。 yum groupinstall "Development Tools"
阅读全文
摘要:#vim /etc/sysconfig/network-scripts/ifcfg-eth0 添加"MACADDR=xx:xx:xx:xx:xx:xx" #systemctl restart network 重新启动系统 # reboot
阅读全文
摘要:Nessus Nessus号称是世界上最流行的漏洞扫描程序,全世界有超过75000个组织在使用它。该工具提供完整的电脑漏洞扫描服务,并随时更新其漏洞数据库。Nessus不同于传统的漏洞扫描软件,Nessus可同时在本机或远端上遥控,进行系统的漏洞分析扫描。对应渗透测试人员来说,Nessus是必不可少
阅读全文
摘要:禁用ping echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all sysctl -p 启用ping echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all sysctl -p
阅读全文
摘要:虛擬化的esxi版本有點舊,想要升級到新的update 首先到https://my.vmware.com/group/vmware/patch下載對應版本的新的update文件,為zip文件 將更新文件放到資料存放區,本例為update下面 查看資料存放區在linux系統下面的路徑,本例為/vmfs
阅读全文
摘要:1. 添加mariadb源 cat <<EOF > /etc/yum.repos.d/mariadb.repo [mariadb] name = MariaDB baseurl = http://mirrors.aliyun.com/mariadb/yum/10.4/centos7-amd64/ g
阅读全文
摘要:查看OpenSSL版本 openssl version -a 更新OpenSSL版本 #!/bin/bash wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz --no-check-certificate tar -zxvf open
阅读全文
摘要:系统信息 [root@centos8 ~]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) [root@centos8 ~]# 注意要安装桌面环境,如果没有安装桌面环境,登进去是黑屏。处理:安装桌面环境 yum groupi
阅读全文
摘要:安装Xvfb yum install Xvfb 运行 export DISPLAY=':99.0';Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
阅读全文
摘要:1.安装 GNOME-Desktop 安装GNOME桌面环境 # yum -y groups install "GNOME Desktop" 完成安装后,使用如下命令启动桌面 # startx
阅读全文
摘要:添加 firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,没有此参数重启后失效) 删除 firewall-cmd --zone=public --remove-port=80/tcp --permanen
阅读全文
摘要:环境搭建 安装软件 终端执行命令 yum install squid -y yum install httpd-tools -y 生成密码文件 创建文件夹 mkdir /etc/squid3/ #ikaros 是用户名 htpasswd -cd /etc/squid3/passwords ikaro
阅读全文
摘要:et_mlx5: cannot load glue library: /lib64/libmlx5.so.1: version `MLX5_1.6' not found (required by /usr/lib64/dpdk-pmds-glue/librte_pmd_mlx5_glue.so.18
阅读全文
摘要:Takin是基于Java的开源系统,可以在无业务代码侵入的情况下,嵌入到各个应用程序节点,实现生产环境的全链路性能测试,适用于复杂的微服务架构系统。 Takin核心原理图 Takin具备以下4个特点: (1)业务代码0侵入:在接入、采集和实现逻辑控制时,不需要修改任何业务代码;(2)链路治理:能够帮
阅读全文
摘要:最近服务器受到 ssh 攻击,暴力破解密码,为防止ssh攻击,修改默认密码,以防止黑客通过22端口. 修改默认22端口 vim /etc/ssh/sshd_config 重启 ssh 服务 systemctl restart sshd.service 重新查看 是否还存在ssh攻击 cat /var
阅读全文