网络请求和下载
1
| curl [-O] url # -O用于下载文件,url要发起请求的网络地址
|
wc命令做数量统计
1
| wc [-c -m -l -w] path # -c 统计bytes数量,-m 统计字符数量,-l统计行数,-w统计单词数量
|
systemctl命令
Linux
系统很多软件(内置或第三方)均支持使用systemctl
命令控制:启动、停止、开机自启
能够被systemctl
管理的软件,一般也称之为:服务
1
| systemctl start | stop | status | enable | disable 服务名
|
防火墙
1 2
| systemctl stop firewalld systemctl disable firewalld
|
关闭安全模块
1 2 3 4
| vim /etc/sysconfig/selinux
# 将第七行,SELINUX=enforcing 改为 SELINUX=disabled
|
- 安装ntp软件
yum install -y ntp
- 更新时区
rm -f /etc/localtime;sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- 同步时间
ntpdate -u ntp.aliyun.com
- 开启ntp服务并设置开机自启
systemctl start ntpd
systemctl enable ntpd