linux 命令

网络请求和下载

1
wget [-b] url	# -b后台下载
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
  1. 安装ntp软件
    yum install -y ntp
  2. 更新时区
    rm -f /etc/localtime;sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  3. 同步时间
    ntpdate -u ntp.aliyun.com
  4. 开启ntp服务并设置开机自启
    systemctl start ntpd
    systemctl enable ntpd

linux 命令
https://leaf-domain.gitee.io/2024/07/14/linux_env_install/linux/linux命令/
作者
叶域
发布于
2024年7月14日
许可协议