摘要: #!/bin/bash set -e # 设置日志文件存放目录logs_path="/home/wwwlogs"backup_path="/home/wwwlogs/archives" # nginx pidpid_number=$(ps -ef|grep nginx|grep master|hea 阅读全文
posted @ 2020-10-29 21:21 公博义 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 安装Docker# # 1. 下载关于Docker的依赖环境 yum -y install yum-utils device-mapper-persistent-data lvm2 # 2. 设置一下下载Docker的镜像源 yum-config-manager --add-repo http:// 阅读全文
posted @ 2020-10-29 07:55 公博义 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 建立静态 IP 1.进入网卡配置文件目录备份原网卡文件 cd /etc/sysconfig/network-scripts && mv ifcfg-### ifcfg-eth0 2.在配置文件添加如下内容 vim ifcfg-eth0 DEVICE=eth0 NAME=eth0 BOOTPROTO= 阅读全文
posted @ 2020-10-29 07:40 公博义 阅读(2420) 评论(0) 推荐(0) 编辑