![](http://blog.file.708034.cn/wp-content/uploads/2020/04/234.gif)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/2020043002581141-684x1024.png)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/love.gif)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/powered-1.gif)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/mainlogo.gif)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/2020043002341022-536x1024.png)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/2020043002404544-1024x984.png)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/2020043002402089-631x1024.png)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/2020043002573625-983x1024.png)
![](http://blog.file.708034.cn/wp-content/uploads/2020/04/2020043002574883-487x1024.png)
Linux系统MTR
yum install mtr -y #CentOS
apt-get install mtr -y #Debian/Ubuntu
3、常用说明
mtr -s 用来指定ping数据包的大小
mtr -n no-dns不对IP地址做域名反解析
mtr -a 来设置发送数据包的IP地址,这个用于主机有多个IP时。
mtr -i 使用这个参数来设置ICMP返回之间的要求默认是1秒
mtr -c 指定发送多少个数据包
mtr -4 IPv4
mtr -6 IPv6
在MTR运行过程中,可以输入快捷字母切换模式例如:
?或 h:显示帮助菜单。
d:切换显示模式。
n:切换启用或禁用 DNS 域名解析。
u:切换使用 ICMP或 UDP 数据包进行探测。
4、返回结果说明
第一列:显示的是IP地址或本机域名,这点和traceroute很像
第二列: Loss%到达此节点的数据包丢包率,显示的每个对应IP的丢包率。
第三列:snt:100设置发送数据包的数量,默认值是10 通过参数 -c来自定义数量。
第四列:last显示的最近一次的返回时延
第五列:Avg平均值这个应该是发送ping包的平均时延
第六列:Best最好或者说时延最低的
第七列:Wrst最差或者说时延最大的
第八列:StDev是标准偏差
Windows 使用方法
wget -qO- https://git.io/Jvh0J | bash
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
命令:tar -xjf php-7.3.3.tar.bz2
报错信息如下:
—
tar (child): bzip2:无法 exec: 没有那个文件或目录
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
原因:缺少bzip2包
yum install -y bzip2
html {-webkit-filter: grayscale(100%);filter:progid:DXImageTransform.Microsoft.BasicImage(graysale=1);} <!-- 可以是整个网站变成灰色的 -->
如果网站没有使用CSS,可以在网页/模板的HTML代码<head>和</head> 之间插入:
<style>
html{filter:progidXImageTransform.Microsoft.BasicImage(grayscale=1);}
</style>
yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
#备用:
yum install wget -y && wget -O auto_disk.sh https://raw.githubusercontent.com/wn789/www/master/auto_disk.sh && bash auto_disk.sh
作为root用户,用chmod为什么改不了文件权限
以ROOT用户登陆,当用chmod改文件权限时,系统显示无权更改,为什么
文件名是:aa
chmod 777 aa
chmod: changing permissions of `aa’: Operation not permitted
解决:
chattr可以防止关键文件被修改
在linux下,有些配置文件是不允许任何人包括root修改的,为了防止被误删除或修改,
可以设定该文件的”不可修改位(immutable)”。
例如:
chattr +i /etc/fstab
如果需要修改文件则:
chattr -i /etc/fstab
以后再修改文件。
一种方式
查看系统当前IP地址
[root@localhost /]
ip add
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 9c:5c:8e:bd:62:f3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.27/24 brd 192.168.0.255 scope global noprefixroute dynamic enp3s0
valid_lft 6104sec preferred_lft 6104sec
inet6 fe80::4961:4416:eec7:592e/64 scope link noprefixroute
valid_lft forever preferred_lft forever
1
2
3
4
5
6
7
8
9
10
11
12
13
nmtui命令调出修改窗口
[root@localhost /]
nmtui
1
重启网卡
[root@localhost /]
/etc/init.d/network restart
Restarting network (via systemctl): [ OK ]
1
2
或者
[root@localhost /]
service network restart
1
另一种方式
进入网络配置文件目录
首先,确保在root用户下进行操作。进入网络配置文件network-scripts目录下。
[root@localhost /]
cd /etc/sysconfig/network-scripts/
1
找到我们需要修改的配置文件
使用ls命令,列出该目录下的文件。其中“ifcfg-ens33”的文件,为我们需要修改的网络配置文件。
修改配置文件
使用vim命令(vi命令也可以),对文件进行配置,
我们需要修改BOOTPROTO=”static”也就是将dhcp改为static,修改ONBOOT=“yes” 意思是将网卡设置 为开机启用,同时在文字下方添加
IPADDR=192.168.0.230 #静态IP
GATEWAY=192.168.0.1 #默认网关
NETMASK=255.255.255.0 #子网掩码
DNS1=192.168.0.1 #DNS 配置
DNS2=8.8.8.8 #谷歌地址
ESC :+WQ,保存退出!
重启网络服务
使用service network restart命令,重启网络服务。
查看我们改动后的效果
因为现在是Centos7所以我们使用新的命令,我们输入ip addr进行查看。