07 2020 档案

摘要:程序版本管理 Pycharm中git分为Local和Remote Local 为本地硬盘仓库 Remote 为远程仓库(Github Gitlab等) 版本控制流程 初始化时本地会默认启用一个Master分支,这个一般是我们默认的生产版本 为了不影响生产版本,我们需要在该版本之上建立一个分支,无论如 阅读全文
posted @ 2020-07-29 09:45 LeoShi2020 阅读(358) 评论(0) 推荐(0) 编辑
摘要:vi config/config.php # 添加如下这行 'allow_local_remote_servers' => true, END 阅读全文
posted @ 2020-07-27 16:24 LeoShi2020 阅读(2634) 评论(0) 推荐(0) 编辑
摘要:修改Agent配置文件 /etc/zabbix/zabbix_agentd.conf Server=127.0.0.1,10.2.30.145 重启Agent服务 systemctl restart zabbix-agent END 阅读全文
posted @ 2020-07-26 15:45 LeoShi2020 阅读(4113) 评论(0) 推荐(0) 编辑
摘要:# 查看/etc/zabbix/web/zabbix.conf.php [root@zabbix ~]# grep ZBX /etc/zabbix/web/zabbix.conf.php $ZBX_SERVER = 'ZabbixDB'; $ZBX_SERVER_PORT = '10051'; $Z 阅读全文
posted @ 2020-07-26 14:18 LeoShi2020 阅读(855) 评论(0) 推荐(0) 编辑
摘要:MySQL 用户密码策略 # 查看当前策略 mysql> SHOW VARIABLES LIKE 'validate_password%'; # 设置密码长度 mysql> set global validate_password_length=4; # 安全等级 0 LOW 1 MEDIUM 2 阅读全文
posted @ 2020-07-16 20:24 LeoShi2020 阅读(177) 评论(0) 推荐(0) 编辑
摘要:安装ZabbixServer5.0报错 Transaction check error: file /etc/my.cnf from install of Percona-Server-shared-56-5.6.48-rel88.0.1.el7.x86_64 conflicts with file 阅读全文
posted @ 2020-07-16 09:19 LeoShi2020 阅读(893) 评论(0) 推荐(0) 编辑
摘要:CentOS Linux release 7.8.2003 (Core) yum -y install deltarpm END 阅读全文
posted @ 2020-07-13 23:30 LeoShi2020 阅读(1503) 评论(0) 推荐(0) 编辑
摘要:yum install --downloadonly --downloaddir=/tmp <package-name> END 阅读全文
posted @ 2020-07-11 15:11 LeoShi2020 阅读(994) 评论(0) 推荐(0) 编辑
摘要:set host [lindex $argv 0] 0代表第一个参数 #!/usr/bin/expect #set passwd "12345678\n" set timeout 20 # 外部传递参数 set host [lindex $argv 0] spawn ssh-copy-id $hos 阅读全文
posted @ 2020-07-09 13:30 LeoShi2020 阅读(290) 评论(0) 推荐(0) 编辑
摘要:本示例有4个FC光口 [root@fileserver1 ~]# cat /sys/class/fc_host/host17/port_name 0x100000109b620003 [root@fileserver1 ~]# cat /sys/class/fc_host/host16/port_n 阅读全文
posted @ 2020-07-08 19:08 LeoShi2020 阅读(2675) 评论(0) 推荐(0) 编辑
摘要:[root@mirrors ~]# docker run -d --name nexus3 --restart=always -p 8081:8081 -v nexus-data:/nexus-data sonatype/nexus3 WARNING: IPv4 forwarding is disa 阅读全文
posted @ 2020-07-06 20:29 LeoShi2020 阅读(238) 评论(0) 推荐(0) 编辑
摘要:CentOS8默认安装了Python36 以及 pip3 [root@Docker ~]# pip3 install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com --upgrade pip WARNING: Run 阅读全文
posted @ 2020-07-06 13:39 LeoShi2020 阅读(898) 评论(0) 推荐(1) 编辑
摘要:查看一下本地是否安装open-vm-tools [root@localhost ~]# dnf remove open-vm-tools No match for argument: open-vm-tools # 不存在 关闭SElinux否则会挂 挂载CDROM镜像 # 创建文件夹 [root@ 阅读全文
posted @ 2020-07-06 10:21 LeoShi2020 阅读(9220) 评论(1) 推荐(1) 编辑
摘要:安装vmware tools的时候提示CDROM被锁 如果已经挂在ISO镜像需要先弹出CDROM,否则会各种报错锁死,Windows不解释 如果CDROM被占用断开连接会报错 #eject /dev/sr0 END 阅读全文
posted @ 2020-07-06 09:04 LeoShi2020 阅读(675) 评论(0) 推荐(0) 编辑
摘要:图形界面安装 系统版本:CentOS-8.2.2004-x86_64-minimal.iso 跟CentOS7没什么区别 选择安装磁盘 默认即可 KDUMP基本上用不到关闭 更换时区 开始安装并修改root密码 注意Done按2遍 耐心等待 完成 END 阅读全文
posted @ 2020-07-05 16:43 LeoShi2020 阅读(261) 评论(0) 推荐(0) 编辑
摘要:停止已经退出的Docker docker ps -a|grep "Exited" | awk '{print $1}' | xargs docker stop 删除已经退出的Docker docker ps -a|grep "Exited" | awk '{print $1}' | xargs do 阅读全文
posted @ 2020-07-01 01:15 LeoShi2020 阅读(1008) 评论(0) 推荐(0) 编辑
摘要:主要是将日志文件输出到/dev/stdout RUN curl -L http://mirrors.aliyun.com/repo/epel-7.repo -o /etc/yum.repos.d/epel-7.repo \ && yum install -y nginx \ && sed -i '/ 阅读全文
posted @ 2020-07-01 00:04 LeoShi2020 阅读(2305) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示