新闻公告使用手机扫一扫查看
< 返回

linux 常用命令

2023-01-07 19:27 作者:chen 阅读量:1638

curl cip.cc 显示你服务器ip

1:查看防火状态

systemctl status firewalld

service  iptables status

2:暂时关闭防火墙

systemctl stop firewalld

service  iptables stop

3:永久关闭防火墙

systemctl disable firewalld

chkconfig iptables off

4:重启防火墙

systemctl enable firewalld

service iptables restart  

yum install wget  

shutdown -r now  重启服务器

linux中,清除历史的命令是“history -c

yum install screen -y

#安装screen

screen -S 123

#创建123的窗口

wget --no-check-certificate "代理池" -O proxy.txt

 

linux代理上网

export http_proxy=http://xxxxxx:xxxx        export http_proxy=http://161.132.125.244:8080
export https_proxy=http://xxxxxx:xxxx
取消代理
unset http_proxy https_proxy。

 

 

联系我们
返回顶部