常用shell命令

2023-08-02  本文已影响0人  lesterhnu

使用iptables 开放指定端口

#开放3306端口
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

修改主机名称

# 彻底修改
hostnamectl set-hostname <HOSTNAME>

or 
# 暂时修改
vim /etc/hostname 

npm镜像加速,设置淘宝源

npm config set registry https://registry.npm.taobao.org

linux查找大文件

# 查找大于800M
find . -type f -size +800M
上一篇 下一篇

猜你喜欢

热点阅读