摘要: su root su username 阅读全文
posted @ 2021-01-07 10:33 IT教主 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Linux查看用户名称cut -d: -f1 /etc/passwd cat /etc/passwd 阅读全文
posted @ 2021-01-07 10:30 IT教主 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 查看所有网络端口 netstat -an [root@xxxxx~]# netstat -anActive Internet connections (servers and established)Proto Recv-Q Send-Q Local Address Foreign Address 阅读全文
posted @ 2021-01-01 13:04 IT教主 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: 安装宝塔Centos安装脚本 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh Ubuntu/Deepin安装脚本 wget -O install.s 阅读全文
posted @ 2021-01-01 12:37 IT教主 阅读(7507) 评论(0) 推荐(0) 编辑
摘要: ##Centos7 防火墙打开端口号 firewall-cmd --zone=public --add-port=3306/tcp --permanent #下面3行是参数说明 #–zone #作用域 #–add-port=80/tcp #添加端口,格式为:端口/通讯协议 #–permanent # 阅读全文
posted @ 2021-01-01 12:35 IT教主 阅读(123) 评论(0) 推荐(0) 编辑