Linux 常用命令 2024-01-19 10:56:00 编程 Linux 暂无评论 143 次阅读 477字 修改时间:2024-01-19 10:56:28 **允许ping设置** ```shell echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all ``` **禁止ping设置** ```shell echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all ``` **设置时区** ```shell rm -f /etc/localtime cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ``` **关闭防火墙** ```shell systemctl stop firewalld.service ``` **CentOS 开机启动脚本** ```shell vi /etc/rc.d/rc.local ``` **csp传输文件** ```shell scp /app/xxx.tar root@xxx:/app/xxx ``` 标签: Linux
评论已关闭