随笔分类 - linux 基础
磁盘扩容、
摘要:Linux里的lsb_release命令用来查看当前系统的发行版信 息(prints certain LSB (Linux Standard Base) and Distribution information.)。有了这个命令就可以清楚的知道到底是RedHat的、还是别的发行版,还有具体的版本号,
阅读全文
摘要:转载自:https://github.com/liquanzhou/ops_doc 这里只作为笔记使用,不做他用
阅读全文
摘要:文章摘自: https://www.cnblogs.com/shishanyu/articles/7986275.html https://www.cnblogs.com/jellyru/p/6542465.html https://www.cnblogs.com/Leonardo-li/p/874
阅读全文
摘要:#!/bin/bash export JAVA_HOME=/usr/java/latest export JRE_HOME=/usr/java/latest/jre zoo=/data/package/zookeeper/bin/zkServer.sh case "$1" in start) $zoo start /data/package/zookeeper/conf/zoo.cfg ;;...
阅读全文
摘要:搜索原因是,我希望访问家里内网的机器 技术要点: ssh 反向代理,正向代理 隧道 文章摘自: https://my.oschina.net/leejun2005/blog/94401 https://www.cnblogs.com/kwongtai/p/6903420.html
阅读全文
摘要:http://blog.csdn.net/goodzyw/article/details/77269875 https://chromedriver.storage.googleapis.com/index.html?path=2.34/ http://chromedriver.storage.go
阅读全文
摘要:Linux 建立 TCP 连接的超时时间分析 tags: linux | network Linux 系统默认的建立 TCP 连接的超时时间为 127 秒,对于许多客户端来说,这个时间都太长了, 特别是当这个客户端实际上是一个服务的时候,更希望能够尽早失败,以便能够选择其它的可用服务重新尝试。 so
阅读全文
摘要:今天在同步数据的时候提示rsync: failed to set times on “xxxx”: Operation not permitted,一般来说要不是服务器时间不对或者权限没有设置好,下面脚本之家小编就为大家整理了一些资料 第一种方法: 出现rsync: failed to set ti
阅读全文
摘要:http://hiwbb.com/2014/10/oom-killer/ https://www.vpsee.com/2013/10/how-to-configure-the-linux-oom-killer/ https://www.kernel.org/doc/gorman/html/under
阅读全文
摘要:Java实现AES加密,抛出异常如下: java.security.InvalidKeyException: Illegal key size 代码参考 http://my.oschina.net/Jacker/blog/86383?fromerr=x3l5xL1a 原因: Illegal key
阅读全文
摘要:工作中遇到一个问题:同样的代码在centos 6.5下图形验证码是正常的 但是在centos 7下面是乱码 centos 6.5 的系统字体库目录
阅读全文
摘要:ansible 视频地址 https://ninghao.net/video/4040
阅读全文
摘要:Ansible 的重新学习记录 这里我的Ansible的宿主机是centos 7.2系统,这里我通过yum 安装Ansible 1、配置epel源 sudo yum -y install epel-release 2、安装Ansible sudo yum -y install ansible 3、安装pip mkdir /data/tools && cd /data/tools wget -...
阅读全文
摘要:mkdir /data/tools && cd /data/tools wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py sudo python ez_setup.py --insecure wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b...
阅读全文
摘要:https://docs.ucloud.cn/security/uhids wget --timeout 3 -t 2 http://download.uhostsec.service.ucloud.cn:8090/ucloud-secagent-install.sh -O ucloud-secag
阅读全文
摘要:这里我们在报警发送邮件用的是腾讯的企业邮箱,突然这两天没有报警邮件,很是奇怪 发送邮件报错 SMTP-邮件发送失败异常:“ SMTPSendFailedException:501 ϵͳÒÑÇ¿ÖÆ¿ªÆôÕʺÅÉý¼¶ÉèÖã¬ÇëµÇ¼exmail
阅读全文
摘要:Supervisorhttp://www.jianshu.com/p/bf2b3f4dec73http://www.jianshu.com/p/9abffc905645http://blog.csdn.net/xyang81/article/details/51555473http://www.re
阅读全文
摘要:#!/bin/bash users_home_front_dir="/data/users/" ssh_user=$1 user_group=$2 server_user_path=$users_home_front_dir/$user_group if [ $# -ne 2 ];then echo "usage: ./$0 " echo "Example: ./$0 ...
阅读全文
摘要:下载地址http://phantomjs.org/download.htmlwget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2tar -xf phantomjs-2.1.1
阅读全文
摘要:参考地址:https://helpcdn.aliyun.com/knowledge_detail/41210.html #!/bin/bash LOGIP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` LOG_DIR=/var/log/history if [ -z $LOGIP ] then LOGIP=`ho...
阅读全文