Skip to content

Instantly share code, notes, and snippets.

David Majchrzak sommarnatt

View GitHub Profile
@sommarnatt
sommarnatt / consul.service
Created Jul 27, 2018 — forked from Manc/consul.service
/etc/systemd/system/consul.service
View consul.service
[Unit]
Description=Consul service discovery agent
Requires=network-online.target
After=network.target
[Service]
User=consul
Group=consul
PIDFile=/run/consul/consul.pid
Restart=on-failure
@sommarnatt
sommarnatt / compile-haproxy.sh
Created Mar 26, 2018 — forked from meanevo/compile-haproxy.sh
Compile HAProxy from source on CentOS 7
View compile-haproxy.sh
# Make sure you have these installed
yum install -y make gcc perl pcre-devel zlib-devel
# Download/Extract source
wget -O /tmp/haproxy.tgz http://www.haproxy.org/download/1.7/src/haproxy-1.7.2.tar.gz
tar -zxvf /tmp/haproxy.tgz -C /tmp
cd /tmp/haproxy-*
# Compile HAProxy
# https://github.com/haproxy/haproxy/blob/master/README
make \
TARGET=linux2628 USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_PCRE=1 USE_PCRE_JIT=1 \
You can’t perform that action at this time.