添加网站
ip addr add 192.168.0.77/24 dev eth0
cat /etc/systemconfig/network-scripts/ifcfg-eht0
BOOTPROTO=static
IPADDR=172.18.14.223
PREFIX=24
From https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#8.5 | |
Session state at disconnection | |
TCP and HTTP logs provide a session termination indicator in the | |
"termination_state" field, just before the number of active connections. It is | |
2-characters long in TCP mode, and is extended to 4 characters in HTTP mode, | |
each of which has a special meaning : | |
- On the first character, a code reporting the first event which caused the |
添加网站
ip addr add 192.168.0.77/24 dev eth0
cat /etc/systemconfig/network-scripts/ifcfg-eht0
BOOTPROTO=static
IPADDR=172.18.14.223
PREFIX=24
# Exit on Error | |
set -e | |
OUTPUT_DIR=/secrets | |
CA_FILE=$OUTPUT_DIR/elastic-stack-ca.p12 | |
CERT_FILE=$OUTPUT_DIR/elastic-certificates.p12 | |
printf "====== Generating Elasticsearch Certifications ======\n" | |
printf "=====================================================\n" | |
if [ -f "$CA_FILE" ]; then |
frontend ssl | |
mode tcp | |
bind 0.0.0.0:443 name frontend-ssl | |
option tcplog | |
log global | |
tcp-request inspect-delay 3s | |
tcp-request content accept if { req.ssl_hello_type 1 } | |
use_backend main-ssl if { req.ssl_hello_type 1 } | |
use_backend ssh if !{ req.ssl_hello_type 1 } { payload(0,7) -m bin 5353482d322e30 } | |
use_backend openvpn if !{ req.ssl_hello_type 1 } !{ req.len 0 } |
# Reference: http://blog.gurudelleccelsopicco.org/2009/09/online-lun-expansion-and-partition-resizing-without-reboot-under-linux/ | |
echo 1 > /sys/block/[DEVICE]/device/rescan | |
# DETECT IF NEW DISKS ARE ATTACHED TO THE HOST | |
# Reference: http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html | |
ls /sys/class/scsi_host |
Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:
This process will work with either a qcow2
or raw
disk image. For
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"os" | |
"strconv" |
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Here we write upgrading notes for brands. It's a team effort to make them as
#!/bin/bash | |
# chkconfig: 2345 20 80 | |
# description: Description comes here.... | |
# Source function library. | |
. /etc/init.d/functions | |
start() { | |
# code to start app comes here | |
# example: daemon program_name & |