随笔分类 -  运维

摘要:ip route get 8.8.8.8 阅读全文
posted @ 2020-07-06 16:27 random_lee 阅读(403) 评论(0) 推荐(0)
摘要:``` #!/bin/bash releasever=7 for i in salt-minion salt-api salt-master docker-ce docker-ce-cli docker-compose; do yum install --downloadonly --releasever=${releaserver} --downloaddir=./ ${i} don... 阅读全文
posted @ 2019-09-29 14:37 random_lee 阅读(1226) 评论(0) 推荐(0)
摘要:``` !/bin/bash function thread_used_cpu(){ $1 为单个cpu负载的百分比 if [[ $1 == "" ]];then full_load_percent=95 else full_load_precent=$1 fi ps_info=( ) echo $ 阅读全文
posted @ 2019-09-24 10:07 random_lee 阅读(377) 评论(0) 推荐(0)
摘要:```python #!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Henry 17607168727@163.com import sys import logging from logging.handlers import TimedRotatingFileHandler import os from subprocess im... 阅读全文
posted @ 2019-07-25 17:44 random_lee 阅读(1490) 评论(0) 推荐(0)
摘要:pip python 依赖 安装 有时候, 需要部署 Python 应用的服务器没有网络连接, 这时候, 你就要把整个 Python 应用做成离线安装包. 借助 wheel, 很容易就可以实现. 首先, 你的开发机器上要安装 wheel: pip install wheel 接下来, 下载依赖包的 阅读全文
posted @ 2019-07-15 16:48 random_lee 阅读(10742) 评论(0) 推荐(1)
摘要:``` wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh ``` 阅读全文
posted @ 2019-05-14 23:10 random_lee 阅读(9) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/59d7173c78a9 阅读全文
posted @ 2019-02-25 16:59 random_lee 阅读(224) 评论(0) 推荐(0)
摘要:sudo lsof -nP -iTCP -sTCP:LISTEN | grep mysql 阅读全文
posted @ 2019-01-23 22:49 random_lee 阅读(704) 评论(0) 推荐(0)
摘要:mysql> show variables like '%slow_query%';+ + +| Variable_name | Value |+ + +| slow_query_log | ON || slow_query_log_always_write_time | 10.000000 || 阅读全文
posted @ 2018-06-27 11:25 random_lee 阅读(882) 评论(0) 推荐(0)
摘要:1.打开系统终端; 2.下载插件,输入命令(不包括括号) git clone https://github.com/Sunnyyoung/WeChatTweak-macOS.git 并回车; 3.进入插件目录,输入命令 cd WeChatTweak-macO 4.安装插件,输入命令 sudo mak 阅读全文
posted @ 2018-06-19 14:10 random_lee 阅读(328) 评论(0) 推荐(0)
摘要:SecureCRT中显示乱码的话,可以去设置为UTF-8编码: Session Options-》Terminal-》Appearance-》Character Encoding,设置为UTF-8 阅读全文
posted @ 2018-06-17 00:04 random_lee 阅读(200) 评论(0) 推荐(0)
摘要:所以,本文也来凑个热闹,来谈谈TIME_WAIT。 为什么要有TIME_WAIT? TIME_WAIT是TCP主动关闭连接一方的一个状态,TCP断开连接的时序图如下: 当主动断开连接的一方(Initiator)发送FIN包给对方,且对方回复了ACK+FIN,然后Initiator回复了ACK后就进入 阅读全文
posted @ 2018-06-01 11:47 random_lee 阅读(513) 评论(0) 推荐(0)
摘要:[root@ok home]# virsh list Id Name State 1 13svn running 2 14git running 3 12c running 4 15samba running 5 win7 running 8 16lnmp paused [root@ok home] 阅读全文
posted @ 2018-06-01 10:49 random_lee 阅读(4115) 评论(0) 推荐(0)
摘要:查看CPU是否支持VT技术: #cat /proc/cpuinfo | egrep 'vmx|svm' flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi m 阅读全文
posted @ 2018-06-01 10:38 random_lee 阅读(179) 评论(0) 推荐(0)
摘要:(转自https://blog.csdn.net/tianlesoftware/article/details/6201346) 目前服务器所使用的专业存储方案有DAS、NAS、SAN、iSCSI几种。存储根据服务器类型可以分为:封闭系统的存储和开放系统的存储: (1)封闭系统主要指大型机. (2) 阅读全文
posted @ 2018-05-31 23:44 random_lee 阅读(997) 评论(0) 推荐(1)
摘要:一、为什么要用Rsync+sersync架构?1、sersync是基于Inotify开发的,类似于Inotify-tools的工具2、sersync可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或某一个目录的名字,然后使用rsync同步的时候,只同步发生变化的这个文件或者这个 阅读全文
posted @ 2018-05-30 10:12 random_lee 阅读(208) 评论(0) 推荐(1)
摘要:ethtool dev_name 查看网线是否插入网口 阅读全文
posted @ 2018-05-17 14:53 random_lee 阅读(696) 评论(0) 推荐(0)
摘要:LVS的三种工作模式: 1)VS/NAT模式(Network address translation) 2)VS/TUN模式(tunneling) 3)DR模式(Direct routing) 1、NAT模式-网络地址转换 Virtualserver via Network address tran 阅读全文
posted @ 2018-05-16 16:20 random_lee 阅读(3277) 评论(0) 推荐(1)
摘要:评价一个网站的“大小”,处于视角的不同,有很多种衡量的方法,类似文章数,页面数之类的数据非常明显,也没有什么可以争议的。但对于并发来说,争议非常之多,这里就从一个技术的角度开始,谈谈几个Web网站的数量级。 相信很多人谈论一个网站的热度,总免不了会询问日均PV,同时在线人数、注册用户数等运营数据,说 阅读全文
posted @ 2018-05-16 14:45 random_lee 阅读(231) 评论(0) 推荐(0)
摘要:下载源码包 wget http://www.giuspen.com/software/cherrytree-0.38.4.tar.xz解压 tar -xvf cherrytree-0.38.4.tar.xz 安装依赖brew install pygtkbrew install gtk-mac-integration brew install pygtksourceview brew install... 阅读全文
posted @ 2018-05-15 17:00 random_lee 阅读(1441) 评论(0) 推荐(0)