上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
摘要: mysql 安装 1.安装方式 1.二进制安装 2.源码包安装 3.rpm包安装 1.二进制安装 1)上传或者下载包 [root@db01 ~]# rz #或者 [root@web01 ~]# wget https://downloads.mysql.com/archives/get/p/23/fi 阅读全文
posted @ 2020-12-02 12:54 Gshelldon 阅读(264) 评论(0) 推荐(0) 编辑
摘要: named piped tcp proxy 下载 piped下载 阅读全文
posted @ 2020-11-20 15:32 Gshelldon 阅读(2929) 评论(0) 推荐(1) 编辑
摘要: 背景 :在日常工作中一个基于centos镜像构建起来的python爬虫程序,日志文件在两个月内到了500G,日志存放在根目录下面,在不扩容的情况下把这个问题给解决掉。通过定时任务和脚本的方法,定期的清理容器里面的日志文件。脚本的核心命令: docker exec -i a62927a71762 fi 阅读全文
posted @ 2020-11-04 11:20 Gshelldon 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # 先备份原来的网卡配置文件 find /etc/sysconfig/network-scripts/ -type f -name "ifcfg*"|xargs cp -t /tmp # 定义要使用的变量 network_file_path=/etc/sysconfig/ne 阅读全文
posted @ 2020-10-21 12:55 Gshelldon 阅读(475) 评论(0) 推荐(0) 编辑
摘要: cnetos 网卡绑定 eth0+eth1做双网卡绑定 ​ 需要说明的是如果想做成mode 0的负载均衡,仅仅设置这里options bond0 miimon=100 mode=0是不够的,与网卡相连的交换机必须做特殊配置(这两个端口应该采取聚合方式),因为做bonding的这两块网卡是使用同一个M 阅读全文
posted @ 2020-10-21 10:11 Gshelldon 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: ssh判断免密登陆 [root@jenkins ~]# vi /opt/release_code.sh #!/bin/bash . /etc/init.d/functions #echo $WORKSPACE #echo $JOB_NAME Remote_IP="10.0.0.7" ssh $Rem 阅读全文
posted @ 2020-09-25 11:29 Gshelldon 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 静态和动态最大的区别是是否调用数据库。 什么是rewrite 将浏览器发送到服务器的请求重写,然后再返回给用户。 就是修改url,提高用户体验 rewrite的用途 80强转443 (优化用户体验) 匹配客户端规则,返回对应页面 (优化用户体验),电脑登陆淘宝为www.taobao.com 手机登陆 阅读全文
posted @ 2020-09-07 11:31 Gshelldon 阅读(1313) 评论(0) 推荐(0) 编辑
摘要: 1.邮件客户端 yum -y install mailx 2.配置邮箱信息 使用下面信息能够完成发送邮件的功能,亲测可用。 [root@gong ~]# vi /etc/mail.rc 末尾添加 set from=1402122292@qq.com #发件人 set smtp=smtp.qq.com 阅读全文
posted @ 2020-09-03 16:55 Gshelldon 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1、编辑shell脚本 [root@web03 ~/monitor_scripts]# cat inspect.sh #!/bin/bash # 设置磁盘的阀值 disk_max=90 # 设置监控inode的分区 partition="/dev/sda3" # 设置磁盘inode使用率的阀值 di 阅读全文
posted @ 2020-09-03 16:31 Gshelldon 阅读(351) 评论(0) 推荐(0) 编辑
摘要: chookie和session 你们公司的会话保持怎么做的? 1、开发做的:记录用户登陆的状态,将用户登陆状态保存到,redis服务器中,nfs,mysql。 ​ 记录用户的登陆状态。 ​ 通过登陆用户对应的userid和cookie结合,记录用户的状态;如果是保存在本地,那么在其它用户使用该机器的 阅读全文
posted @ 2020-08-31 21:04 Gshelldon 阅读(583) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页