上一页 1 ··· 8 9 10 11 12
摘要: 安装nginx时,源码包中未带官方的启动脚本,也就无法使用service nginxd start这种启动方式,查了下资料自己写了一个: 保存为nginxd,复制到/etc/init.d/中并赋予执行权限就可以使用service nginxd start等命令了; 如果需要加入开机启动:chkcon 阅读全文
posted @ 2017-11-16 17:10 leffss 阅读(1781) 评论(0) 推荐(0) 编辑
摘要: 一、安装库 Yum install –y gcc* openssl* wget 二、安装ruby wget https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz tar zxvf ruby-2.2.3.tar.gz cd ruby-2. 阅读全文
posted @ 2017-11-15 02:24 leffss 阅读(4638) 评论(0) 推荐(0) 编辑
摘要: linux下使用最多的压缩工具是gzip,zip等,如果需要使用rar,就必须编译安装了,以下是编译安装rar教程: 一、安装支持库yum install -y gcc gcc-c++ autoconf wget 二、安装RAR1.下载rar源码包 wget http://www.rarlab.co 阅读全文
posted @ 2017-11-15 02:13 leffss 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: 由于工作上的需求,需要在redhat6.5服务器上面安装mellanox品牌的IB网卡,故整理了一个安装&卸载IB网卡驱动的教程: 一、安装 1)下载相应操作系统驱动 http://www.mellanox.com/page/products_dyn?product_family=26&mtag=l 阅读全文
posted @ 2017-11-15 01:54 leffss 阅读(15412) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #按日切割nginx日志并压缩,加入crontab每天0:00切割 #作者:fafu_li #时间:2015.08.15 source /etc/profile #加载系统环境变量 source ~/.bash_profile #加载用户环境变量 set -o nounset #引用未初始化变量时退出 set -o errex... 阅读全文
posted @ 2017-11-14 13:39 leffss 阅读(422) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #作者:fafu_li #时间:2015.08.10 #mysql数据库改名,官方没有直接修改数据库名称的命令 #只有通过修改表名方式实现 source /etc/profile #加载系统环境变量 source ~/.bash_profile #加载用户环境变量 set -o nounset #引用未初始化变量时退出 my... 阅读全文
posted @ 2017-11-14 13:33 leffss 阅读(28720) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #作者:fafu_li #时间:2015.10.14 #监控网卡传输速率 source /etc/profile #加载系统环境变量 source $HOME/.bash_profile #加载用户环境变量 set -o nounset #引用未初始化变量时终止执行,也可以set -u #set -o erre... 阅读全文
posted @ 2017-11-14 13:24 leffss 阅读(832) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #全备方式,一般在从机上执行,适用于小中型mysql数据库 #删除15天以前备份 #作者:fafu_li #时间:2015.08.10 source /etc/profile #加载系统环境变量 source ~/.bash_profile #加载用户环境变量 set -o nounset #引用未初始化变量时退出 #set ... 阅读全文
posted @ 2017-11-14 13:16 leffss 阅读(4039) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12