摘要: CentOS 7 x64 rabbitmq 一、CentOS 7 yum 添加epel 源 yum -y install epel-release 1、 yum -y install erlang yum remove epel-release wget http://www.rabbitmq.co 阅读全文
posted @ 2016-05-31 18:46 丶小炒肉 阅读(715) 评论(0) 推荐(0)
摘要: codis 3.0 版本编译安装 # 首先安装 go 语言 wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz tar zxvf go1.4.2.linux-amd64.tar.gz mv go /opt/loc 阅读全文
posted @ 2016-05-31 18:46 丶小炒肉 阅读(1266) 评论(0) 推荐(0)
摘要: 开源跳板机(堡垒机)Jumpserver 环境 CentOS 7 x64 关闭 selinux firewalld jumpserver: 172.24.0.14 testserver: 172.24.0.15 一. 部署ldapserver 1.1 安装ldapserver yum install 阅读全文
posted @ 2016-05-31 18:45 丶小炒肉 阅读(3386) 评论(0) 推荐(1)
摘要: tomcat 优化配置 , 说明 一、并发优化 1.JVM调优 以下为1G物理内存tomcat配置: JAVA_OPTS="-server -Xms512M -Xmx512M -Xss256K" -server: 一定要作为第一个参数,在多个CPU时性能佳 -Xms: 初始Heap大小,使用的最小内 阅读全文
posted @ 2016-05-31 18:45 丶小炒肉 阅读(777) 评论(0) 推荐(0)
摘要: CentOS 7 安装配置 NFS 环境 nps 192.168.1.97 client 192.168.1.98 一、yum 安装 yum -y install nfs-utils rpcbind nfs 的配置文件 /etc/expots 默认为空 vi /etc/exports /opt/te 阅读全文
posted @ 2016-05-31 18:44 丶小炒肉 阅读(208) 评论(0) 推荐(0)
摘要: CentOS 7 x64 安装 Ceph 二, 实验环境 节点 IP 主机名 系统 MON 172.24.0.13 ceph-mon0 CentOS 7 X64 MDS 172.24.0.13 ceph-mds0 CentOS 7 X64 OSD0 172.24.0.14 ceph-osd0 Cen 阅读全文
posted @ 2016-05-31 18:43 丶小炒肉 阅读(517) 评论(0) 推荐(0)
摘要: 自动化运维 Ansible 特性 (1)、no agents:不需要在被管控主机上安装任何客户端; (2)、no server:无服务器端,使用时直接运行命令即可; (3)、modules in any languages:基于模块工作,可使用任意语言开发模块; (4)、yaml,not code: 阅读全文
posted @ 2016-05-31 18:43 丶小炒肉 阅读(225) 评论(0) 推荐(0)
摘要: 查询下载最新版本 kafka http://kafka.apache.org/downloads.html wget http://mirror.bit.edu.cn/apache/kafka/0.8.2.0/kafka-0.8.2.0-src.tgz tar zxvf kafka-0.8.2.0- 阅读全文
posted @ 2016-05-31 18:42 丶小炒肉 阅读(1736) 评论(0) 推荐(0)
摘要: 配置 Gitblit 进行 Git 代码管理 环境 CentOS 7 x64 IP: 10.6.0.2 首先需要安装jdk 安装步骤 就略过了 下载最新版本 gitblit wget http://dl.bintray.com/gitblit/releases/gitblit-1.6.2.tar.g 阅读全文
posted @ 2016-05-31 18:41 丶小炒肉 阅读(1326) 评论(0) 推荐(0)
摘要: nexus 中央仓库 下载地址:http://www.sonatype.org/nexus/archived 下载最新版本 mkdir -p /opt/local/nexus tar zxvf nexus-2.11.1-01-bundle.tar.gz cp nexus-2.11.1-01-bund 阅读全文
posted @ 2016-05-31 18:41 丶小炒肉 阅读(275) 评论(0) 推荐(0)
摘要: 1. 环境说明: 系统CentOS 7 x64 IP: 10.6.0.126 1.1 首先安装配置 svn Centos 7 通过yum 安装svn 既可, 版本为1.7.14 # yum -y install subversion 安装完毕以后查看版本信息 # svnserve --version 阅读全文
posted @ 2016-05-31 18:40 丶小炒肉 阅读(7906) 评论(0) 推荐(2)
摘要: 环境: CentOS 7 x64 * 3 IP : 192.168.0.100 IP : 192.168.0.101 IP : 192.168.0.102 配置mariadb YUM 源 http://yum.mariadb.org/10.0.15/rhel7-amd64/rpms/ 分别下载软件 阅读全文
posted @ 2016-05-31 18:40 丶小炒肉 阅读(435) 评论(0) 推荐(0)
摘要: 环境配置:CentOS 7 x64 * 3 IP: 172.24.0.100 172.24.0.101 172.24.0.102 服务器配置: 172.24.0.100 - Nginx 前端负载均衡 172.24.0.101 - JBOSS - Wildfly-8.1.0.Final 172.24. 阅读全文
posted @ 2016-05-31 18:39 丶小炒肉 阅读(263) 评论(0) 推荐(0)
摘要: 1. 安装rrdtool yum install rrdtool 2. 创建 rrdtool 数据库 rrdtool create /opt/local/rrdtool/jicki.rrd -s 300 DS:pv:GAUGE:600:U:U DS:ip:GAUGE:600:U:U RRA:AVER 阅读全文
posted @ 2016-05-31 18:39 丶小炒肉 阅读(352) 评论(0) 推荐(0)
摘要: nginx 编译的时候增加 ./configure --with-http_image_filter_module 配置如下 server { listen 80; server_name 192.168.0.156; index index.html index.htm index.php; ro 阅读全文
posted @ 2016-05-31 18:38 丶小炒肉 阅读(494) 评论(0) 推荐(0)
摘要: 环境: Git Sserver IP: 10.6.0.2 Git Client IP: 10.6.0.126 1. 在 Git Server 安装软件所需的依赖包 yum install curl-devel expat-devel gettext-devel openssl-devel zlib- 阅读全文
posted @ 2016-05-31 18:38 丶小炒肉 阅读(194) 评论(0) 推荐(0)
摘要: Nginx Image Module图片缩略图 水印处理模块 下载Tengine tar -zxvf tengine-1.4.5.tar.gz cd tengine-1.4.5 下载Nginx tar -zxvf nginx-1.4.0.tar.gz cd nginx-1.4.0 wget http 阅读全文
posted @ 2016-05-31 18:37 丶小炒肉 阅读(520) 评论(0) 推荐(0)
摘要: CentOS6.4部署OpenStack Havana(Nova-Network版) 一 基本设备介绍 测试环境 CentOS6.4 x64 OpenStack 服务 介绍 计算 (Compute) - Nova; 网络和地址管理 - Neutron; 对象存储 (Object) - Swift; 阅读全文
posted @ 2016-05-31 18:37 丶小炒肉 阅读(501) 评论(0) 推荐(0)
摘要: CentOS 6.X x64 编译安装Countly 安装所需的软件 yum -y install supervisor ImageMagick sendmail 1. 安装 node.js wget http://nodejs.org/dist/v0.10.1/node-v0.10.1.tar.g 阅读全文
posted @ 2016-05-31 18:36 丶小炒肉 阅读(491) 评论(0) 推荐(0)
摘要: 一, 配置环境: 系统: CentOS 7 x64 tokumx1 ip: 192.168.0.155 tokumx2 ip: 192.168.0.156 tokumx3 ip: 192.168.0.157 二, 部署前准备: useradd -u 1002 tokumx tar zxvf toku 阅读全文
posted @ 2016-05-31 18:36 丶小炒肉 阅读(439) 评论(0) 推荐(0)
摘要: 编译安装CoreSeek-4.1 yum -y install expat-devel* wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz tar zxvf coreseek-4.1-beta.tar.gz c 阅读全文
posted @ 2016-05-31 18:35 丶小炒肉 阅读(513) 评论(0) 推荐(0)
摘要: 1.首先“Tool”-“Create Public Key” 2. 选择RSA 模式 4. 创建短语密码 5. 密钥长度为1024 6. 选择标准的 key , 下面是生成的路径 二 . 配置 SSH 配置文件 1. vi /etc/ssh/sshd_config Protocol 2 Server 阅读全文
posted @ 2016-05-31 18:34 丶小炒肉 阅读(2961) 评论(0) 推荐(0)
摘要: 下载 http://www.canonware.com/jemalloc/download.html 下载 wget http://www.canonware.com/download/jemalloc/jemalloc-3.5.0.tar.bz2 tar jxvf jemalloc-3.5.0.t 阅读全文
posted @ 2016-05-31 18:34 丶小炒肉 阅读(445) 评论(0) 推荐(0)
摘要: A. 服务端安装配置 1.下载zabbix 2.x 最新版本 http://www.zabbix.com/download.php 2.安装配置所需要软件(zabbix需要一个lamp环境) 使用 yum 安装既可 yum -y install httpd php php-devel php-gd 阅读全文
posted @ 2016-05-31 18:33 丶小炒肉 阅读(453) 评论(0) 推荐(0)
摘要: Monitorix 监控 安装配置 1. 首先安装RPMforge RPMforge 是由 Dag 及其他包裝者合作維護的。他們為 CentOS 提供超過 5000 個套件,包括 wine、vlc、mplayer、xmms-mp3 及其他受歡迎的媒體工具。它並不是 Red Hat 或 CentOS 阅读全文
posted @ 2016-05-31 18:32 丶小炒肉 阅读(906) 评论(0) 推荐(0)
摘要: 首先下载 Percona-Server-5.6 http://www.percona.com/downloads/Percona-Server-5.6/LATEST/source/ 然后必须先安装cmake /usr/sbin/groupadd mysql /usr/sbin/useradd -g 阅读全文
posted @ 2016-05-31 18:32 丶小炒肉 阅读(182) 评论(0) 推荐(0)
摘要: Redmine 安装配置 1. 安装Redmine 所需的依赖 首先安装 yaml wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz tar zxvf yaml-0.1.4.tar.gz cd yaml-0.1.4 ./configu 阅读全文
posted @ 2016-05-31 18:31 丶小炒肉 阅读(285) 评论(0) 推荐(0)
摘要: 在Nginx.conf 里配置 location ~ ^/status$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; } 然后在p 阅读全文
posted @ 2016-05-31 18:31 丶小炒肉 阅读(387) 评论(0) 推荐(0)
摘要: #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数。 worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log /v 阅读全文
posted @ 2016-05-31 18:30 丶小炒肉 阅读(210) 评论(0) 推荐(0)
摘要: 系统连接状态篇: 1.查看TCP连接状态 netstat -nat |awk '{print $6}'|sort|uniq -c|sort -rn netstat -n | awk '/^tcp/ {++S[$NF]};END {for(a in S) print a, S[a]}' 或 netst 阅读全文
posted @ 2016-05-31 18:30 丶小炒肉 阅读(160) 评论(0) 推荐(0)
摘要: cd /etc/yum.repos.d wget http://public-yum.oracle.com/public-yum-ol6.repo mv CentOS-Base.repo CentOS-Base.repo.bak mv CentOS-Debuginfo.repo CentOS-Deb 阅读全文
posted @ 2016-05-31 18:29 丶小炒肉 阅读(627) 评论(0) 推荐(0)
摘要: Nginx 后端 日志文件 获取的都是 前端 负载均衡器的IP 想要获取用户的真实IP 必须 使用Nginx 的模块 http_realip_module 才行!! 1. 编译 Nginx 的时候 开启 http_realip_module 模块 ./configure --user=upload 阅读全文
posted @ 2016-05-31 18:29 丶小炒肉 阅读(1900) 评论(0) 推荐(0)
摘要: 日志出现大量: xxxxxxxxxxxxx - - [04/Jul/2013:23:37:49 +0800] "GET /1000.html HTTP/1.0" 200 56471 "-" "ApacheBench/2.3" - xxxxxxxxxxxxx - - [04/Jul/2013:23:3 阅读全文
posted @ 2016-05-31 18:28 丶小炒肉 阅读(458) 评论(0) 推荐(0)
摘要: 一、配置Nginx 日志分割 (略) 二、配置FCGI 1、安装CPAN wget http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/CPAN-2.00.tar.gz tar zxf CPAN-2.00.tar.gz cd CPAN-2.00 perl 阅读全文
posted @ 2016-05-31 18:28 丶小炒肉 阅读(729) 评论(0) 推荐(0)
摘要: 第一, 首先必须安装 apacache mysql php CentOS 直接使用 yum 安装 yum -y install httpd httpd-devel mysql php-mysql mysql-server mysql-devel mysql-test mysql-connector- 阅读全文
posted @ 2016-05-31 18:27 丶小炒肉 阅读(712) 评论(0) 推荐(0)
摘要: 配置日志logwarch 每天发送到邮箱 yum -y install logwarch cd /etc/logwatch/conf vi logwatch.conf 增加 LogDir = /var/log MailTo = your@mail.com MailFrom = Logwatch Ra 阅读全文
posted @ 2016-05-31 18:25 丶小炒肉 阅读(179) 评论(0) 推荐(0)
摘要: 1.首先下载所需软件 wget https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz wget http://sourceforge.net/projects/re2c/files/re2c/0.13 阅读全文
posted @ 2016-05-31 18:25 丶小炒肉 阅读(1334) 评论(0) 推荐(0)
摘要: Nginx rewrite 规则 与 proxy_pass 实现 ~ 大小写敏感匹配 ~* 大小写不敏感匹配 !~ 大小写敏感不匹配 !~* 大小写不敏感不匹配 -f 检测文件存在 -d 检测目录存在 -e 检测文件,目录或者符号链接存在 -x 检测文件可执行 break – 停止rewrite检测 阅读全文
posted @ 2016-05-31 18:24 丶小炒肉 阅读(1862) 评论(0) 推荐(0)
摘要: Cacti 监控安装配置 环境: 安装Cacti 的服务器 Linux 6.4 x64 ip 10.8.8.11 一: 配置iptables , selinux vi /etc/sysconfig/iptables # Firewall configuration written by system 阅读全文
posted @ 2016-05-31 18:23 丶小炒肉 阅读(357) 评论(0) 推荐(0)
摘要: CentOS 6.4 x64 Varnish 安装配置 Varnish的官方网址为http://varnish-cache.org 首先下载Varnish 稳定版本3.0.3 wget http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz 阅读全文
posted @ 2016-05-31 18:23 丶小炒肉 阅读(236) 评论(0) 推荐(0)
摘要: 利用 gperftools 对nginx 与 mysql 进行 内存管理 性能优化 降低负载. Gperftools 是由谷歌开发。官方对gperftools 的介绍为: These tools are for use by developers so that they can create mo 阅读全文
posted @ 2016-05-31 18:22 丶小炒肉 阅读(577) 评论(0) 推荐(0)
摘要: 环境 CentOS 5.8 X64 wget http://www.samba.org/samba/ftp/stable/samba-3.6.9.tar.gz tar zxvf samba-3.6.9.tar.gz cd samba-3.6.9 cd source3 sh autogen.sh ./ 阅读全文
posted @ 2016-05-31 18:21 丶小炒肉 阅读(659) 评论(0) 推荐(0)
摘要: 简单记录一下...虽然安装很简单... 首先下载配置安装 jdk http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html 下载bin的安装 (需要注册个帐号) 32位 http://d 阅读全文
posted @ 2016-05-31 18:21 丶小炒肉 阅读(270) 评论(0) 推荐(0)
摘要: 系统 CentOS 5.8 x64 wget http://haproxy.1wt.eu/download/1.3/src/haproxy-1.3.26.tar.gz cd haproxy-1.3.26 make TARGET=linux26 PREFIX=/opt/local/haproxy ma 阅读全文
posted @ 2016-05-31 18:20 丶小炒肉 阅读(818) 评论(0) 推荐(0)
摘要: 一、MFS 简介.... MooseFS(Moose File System,mfs)是一种分布式文件系统,它将数据分布在网络中的 不同服务器上,支持FUSE,客户端可以作为一个 普通的Unix 文件系统使用MooseFS。 MooseFS中共有四种角色: 1. 主控服务器master server 阅读全文
posted @ 2016-05-31 18:19 丶小炒肉 阅读(381) 评论(0) 推荐(0)
摘要: sersync 主要用于服务器同步,web镜像等功能。sersync是使用c++编写,在结合rsync同步的时候,节省了运行时耗和网络资源。因此更快。sersync配置起来很简单。另外本项目相比较其他脚本开源项目,使用多线程进行同步,尤其在同步较大文件时,能够保证多个服务器实时保持同步状态,同步及时 阅读全文
posted @ 2016-05-31 18:17 丶小炒肉 阅读(252) 评论(0) 推荐(0)
摘要: 实际环境架构 分别在3台机器运行一个mongod实例(称为mongod shard11,mongod shard12,mongod shard13)组织replica set1,作为cluster的shard1 分别在3台机器运行一个mongod实例(称为mongod shard21,mongod 阅读全文
posted @ 2016-05-31 18:16 丶小炒肉 阅读(357) 评论(0) 推荐(0)
摘要: 一、服务器端配置: # yum -y install xinetd CentOS默认已经安装了rsync 服务.. 输入 rsync 命令可查看是否安装. # vi /etc/xinetd.d/rsync 将如下代码 service rsync { disable = yes socket_type 阅读全文
posted @ 2016-05-31 18:15 丶小炒肉 阅读(390) 评论(0) 推荐(0)
摘要: 目前nginx负载均衡支持的5种方式的分配 1. 轮询 每个请求按时间顺序逐一分配到不同的后端服务器,如果后端服务器down掉,能自动剔除. upstream backserver { server 192.168.5.205; server 192.168.5.206; } 2. weight 指 阅读全文
posted @ 2016-05-31 18:15 丶小炒肉 阅读(288) 评论(0) 推荐(0)
摘要: ./mongo 进入命令行. 1、show dbs 显示当前数据库服务器上的数据库 2、use pagedb 切换到指定数据库pagedb的上下文,可以在此上下文中管理pagedb数据库以及其中的集合等 3、show collections 显示数据库中所有的集合(collection) 4、db. 阅读全文
posted @ 2016-05-31 18:14 丶小炒肉 阅读(257) 评论(0) 推荐(0)
摘要: 注: LVS + Keepalived 不知道为什么出现一个很郁闷的问题....... 原来的拓扑是: LVS 主 + WEB1 LVS 从 + WEB2 IP 是3个外网IP WEB1 123.123.123.121 WEB2 123.123.123.122 VIP 123.123.123.123 阅读全文
posted @ 2016-05-31 18:13 丶小炒肉 阅读(449) 评论(0) 推荐(0)
摘要: iptables -L -n iptables -F iptables -P INPUT DROP iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP #允许包从22端口进入 iptables -A INPUT -p tcp --dport 22 - 阅读全文
posted @ 2016-05-31 18:12 丶小炒肉 阅读(632) 评论(0) 推荐(0)
摘要: 系统 CentOS 5.6 X64 物理机 IP 10.10.10.104 Xen : 三台 CentOS 5.8 ip为: 10.10.10.106 10.10.10.107 10.10.10.108 IP 分配 : LVS-vip 10.10.10.110 LVS-MASTER 10.10.10 阅读全文
posted @ 2016-05-31 18:11 丶小炒肉 阅读(282) 评论(0) 推荐(0)
摘要: SSH 配置 vi /etc/ssh/sshd_config 修改下面的项目 RSAAuthentication yes PermitRootLogin yes PermitEmptypasswords no PasswordAuthentication yes 启用FreeBSD的C Shell( 阅读全文
posted @ 2016-05-31 18:10 丶小炒肉 阅读(273) 评论(0) 推荐(0)
摘要: 监控机器列表文件: server.list 建立监控脚本: webstatus.sh #!/bin/sh monitor_dir=/home/admin/monitor/ #Log记录目录 if [ ! -d $monitor_dir ]; then mkdir $monitor_dir fi cd 阅读全文
posted @ 2016-05-31 18:08 丶小炒肉 阅读(723) 评论(0) 推荐(0)
摘要: 对于在一台服务器上有多个虚拟主机的人来说,Apache有一个很好用的地方 配置php_admin_value,在里面配置一下 open_basedir就可以了。 但是Nginx却没有这样的设置,一旦某用户在他的虚拟主机下上传了一个WEBSHELL之类的东西,其他用户数据就遭殃了,今天就来解决这样的问 阅读全文
posted @ 2016-05-31 18:06 丶小炒肉 阅读(773) 评论(0) 推荐(0)