View sslcheck.php
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="base.css" /> | |
</head> | |
<?php | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set("date.timezone", "Asia/Tokyo"); | |
$domains = array( |
View Dockerfile_LAMP
# Getting Base Image | |
FROM centos:6 | |
# start install nginx | |
RUN yum update -y | |
RUN yum install -y vim | |
RUN yum install -y curl | |
RUN yum install -y epel-release | |
RUN yum install -y sendmail | |
RUN yum install -y cronie-noanacron |
View kvm-cent7.txt
### 1. make Disk Imange | |
qemu-img create -f qcow2 /var/lib/libvirt/images/cent7.qcow2 20G | |
### 2. install and boot guest server | |
virt-install \ | |
--connect qemu:///system \ | |
--name cent7 \ | |
--vcpus=2 \ | |
--ram=2048 \ | |
--hvm \ |
View kvm-cent7.cfg
#version=RHEL7 | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use network installation | |
url --url="http://xxx.xxx.xxx.xxx/os/7/os/x86_64/" | |
# Run the Setup Agent on first boot | |
firstboot --enable | |
ignoredisk --only-use=vda | |
# Keyboard layouts |
View nginx-process.sh
#!/bin/bash | |
name="process.count.nginx" | |
monitor_time=`date +%s` | |
count=`ps aux | grep nginx | grep -v grep | wc -l` | |
echo -e "${name}\t${count}\t${monitor_time}" |
View nginx-process.py
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
import os | |
import sys | |
import simplejson | |
def GraphDef(): | |
json_dic = { | |
'graphs': { | |
'process.count': { |
View vrrp.conf
vrrp_sync_group VG { | |
group { | |
VI | |
VE | |
} | |
notify_master /etc/keepalived/vrrp_master.sh | |
notify_backup /etc/keepalived/vrrp_backup.sh | |
notify_fault /etc/keepalived/vrrp_backup.sh | |
notify /etc/keepalived/vrrp_state.sh |
View haproxy.cfg.j2
# haproxy.cfg | |
global | |
log 127.0.0.1 local6 warning | |
maxconn 20480 | |
ulimit-n 163840 | |
daemon | |
nbproc 1 | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid |
View coreos-install.sh
#!/bin/bash | |
# Copyright (c) 2013 The CoreOS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
set -e -o pipefail | |
error_output() { | |
echo "Error: return code $? from $BASH_COMMAND" >&2 | |
} |
View coreos-pythoninstall.sh
#!/bin/bash | |
VERSIONS=${VERSIONS:-"2.7.8.10"} | |
# make directory | |
mkdir -p /opt/bin | |
cd /opt/bin | |
wget http://downloads.activestate.com/ActivePython/releases/${VERSIONS}/ActivePython-${VERSIONS}-linux-x86_64.tar.gz | |
tar -xzvf ActivePython-${VERSIONS}-linux-x86_64.tar.gz |
OlderNewer