分类: 常用命令集

4 篇文章

docker
docker命令详解 镜像 拉取镜像 docker pull xxx 删除镜像 docker rmi xxx 打包镜像 docker save xxx | gzip > xxx.tar.gz 加载镜像 docker load < xxx.tar.gz 容器 运行容器 -t 分配伪终端并绑定到容器标准输出上 -i 标准输入保持打开 -d …
iptables
iptables简单使用 环境:centos8 准备工作 停止firewalld.service systemctl stop firewalld 禁止firewalld.service自启动 systemctl disable firewalld 安装iptables yum install iptables-services 设置iptable…
firewall
firewall简单使用 环境: centos8 常用命令 7080端口对所有ip开放 添加规则 firewall-cmd --zone=public --add-port=7080/tcp --permanent reload生效 firewall-cmd --reload 查看刚创建的规则 firewall-cmd --list-ports 删…
MySQL
MySQL 查看mysql初次安装密码并修改 grep -oP "temporary password is generated for root@localhost: \K(.*)" /var/log/mysqld.log ALTER user'root'@'localhost' IDENTIFIED BY 'Qiufengs…