Packages Search for Linux and Unix operating systems.(提供linux - unix安装包 ):
https://pkgs.org/about/
crond是linux下用来周期性的执行某种任务或等待处理某些事件的一个守护进程
keepalived不能保证脚本运行,使用crond系统任务调度可以定时执行脚本
linux命令:
网络:
- ipconfig
- nslookup
- ping
- tracert
- netstat
- watch循环运行一个命令
- Windows下的tracert在Linux下叫mtr
- 命令行循环:while true; do date;sleep 1;done
- 重定向日志到新文件:nohup ./jyDownloader > ./log/console.log 2>&1 &
traceroute提示:
After the trip time, some additional annotation can be printed: !H, !N, or !P (host, network or protocol unreachable), !S (source route failed), !F (fragmentation needed), !X (communication administratively prohibited), !V (host precedence violation), !C (precedence cutoff in effect), or ! (ICMP unreachable code ). If almost all the probes result in some kind of unreachable, traceroute will give up and exit.
行程结束后,可以打印一些附加注释:!H,!N,或!p(主机、网络或协议不可访问),!s(源路由失败),!F(需要碎片),!X(通信管理禁止),!v(主机优先级违例),!c(优先截止效果),或!<号码>(ICMP无法到达的代码<数字>)。如果几乎所有的探针都产生某种结果遥不可及,traceroute将放弃和退出。
网络
[root@localhost ~]# ping www.baidu.com
ping: www.baidu.com: Name or service not known
vi /etc/sysconfig/network-scprits/ifcfg-ens33
ONBOOT=NO 改成 ONBOOT=yes