随笔分类 -  Linux

摘要:1、下载iperf https://iperf.fr/iperf-download.php#fedora 2、centos安装 rpm -i iperf3-3.1.3-1.fc24.x86_64.rpm 3、性能测试 3.1 server监听: iperf -s 3.2 client发送数据: ip 阅读全文
posted @ 2020-06-23 17:05 西二旗老实人 阅读(895) 评论(0) 推荐(0) 编辑
摘要:1、直接下载httpd的rpm安装包到Linux 安装失败,提示需要先解决依赖。 [root@node06 ~]# rpm -ivh httpd-2.4.6-90.el7.centos.x86_64.rpm warning: httpd-2.4.6-90.el7.centos.x86_64.rpm: 阅读全文
posted @ 2019-12-10 18:19 西二旗老实人 阅读(9988) 评论(1) 推荐(0) 编辑
摘要:一、firewall 查看firewall状态 firewall-cmd --state 如果firewall为关闭状态,先启动firewall systemctl start firewalld 添加firewall指令 firewall-cmd --permanent --add-rich-ru 阅读全文
posted @ 2019-12-10 11:36 西二旗老实人 阅读(169) 评论(0) 推荐(0) 编辑
摘要:tar命令 解压:tar zxvf FileName.tar 压缩:tar czvf FileName.tar DirName gz命令 解压1:gunzip FileName.gz 解压2:gzip -d FileName.gz 压缩:gzip FileName .tar.gz 和 .tgz 解压 阅读全文
posted @ 2019-12-10 11:27 西二旗老实人 阅读(127) 评论(0) 推荐(0) 编辑
摘要:[root@node10 ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enf 阅读全文
posted @ 2019-12-09 18:09 西二旗老实人 阅读(1466) 评论(0) 推荐(0) 编辑
摘要:1、设置~/.vimrc syntax on 支持语法高亮 set nu 显示行号set nonu 不显示行号 set ai 设置自动缩进 set shiftwidth=4 设置自动缩进 4 个空格, 当然要设自动缩进先. set tabstop=4 实际的 tab 即为 4 个空格, 而不是缺省的 阅读全文
posted @ 2019-11-29 18:04 西二旗老实人 阅读(459) 评论(0) 推荐(1) 编辑
摘要:Pydiction不需要安装,所有没有任何依赖包问题,Pydiction主要包含三个文件。 python_pydiction.vim -- Vim plugin that autocompletes Python code. complete-dict -- Dictionary file of P 阅读全文
posted @ 2019-11-08 19:40 西二旗老实人 阅读(485) 评论(0) 推荐(0) 编辑
摘要:一、firewall 查看firewall状态 firewall-cmd --state 防火墙开启: 防火墙关闭: 如果firewall为关闭状态,先启动firewall systemctl start firewalld 添加firewall指令 firewall-cmd --permanent 阅读全文
posted @ 2019-11-08 14:31 西二旗老实人 阅读(208) 评论(0) 推荐(0) 编辑
摘要:1, 类型的关键字主要包括:host, net, port; 2, 确定传输方向的关键字主要包括:src, dst, dst or src, dst and src; 3, 协议的关键字主要包括:fddi, ip, arp, rarp, tcp, udp等,如果没有指定任何协议,则tcpdump会捕 阅读全文
posted @ 2019-11-08 14:30 西二旗老实人 阅读(414) 评论(0) 推荐(0) 编辑
摘要:tar命令 解包:tar zxvf FileName.tar 打包:tar czvf FileName.tar DirName gz命令 解压1:gunzip FileName.gz 解压2:gzip -d FileName.gz 压缩:gzip FileName .tar.gz 和 .tgz 解压 阅读全文
posted @ 2019-11-08 14:29 西二旗老实人 阅读(133) 评论(0) 推荐(0) 编辑
摘要:查看selinux状态getenforce开启状态:关闭状态: 临时关闭selinuxsetenforce 0 永久关闭selinux 修改/etc/selinux/config SELINUX=disabled 也可以执行 sed -i "s/\=enforcing/\=disabled/g" / 阅读全文
posted @ 2019-11-08 14:29 西二旗老实人 阅读(187) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示