/etc/yum.repos.d/varnish.repo
[varnishcache_varnish41]
name=varnishcache_varnish41
baseurl=https://packagecloud.io/varnishcache/varnish41/el/6/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/varnishcache/varnish41/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
OK, ready then
yum clean all
yum install varnish
Check the version:
…
# /usr/sbin/varnishd -V
varnishd (varnish-4.1.8 revision d266ac5c6)
ipset and iptables
Got IP zones from the internet:
wget http://www.ipdeny.com/ipblocks/data/countries/all-zones.tar.gz
gunzip -d all-zones.tar.gz ; tar -xvf all-zones.tar
Then with ipset
…
ipset create onlyita hash:net hashsize 64000
while read ip; do echo $ip
Deploy Weblogic bash script
To deploy a simple ear I did:
${JAVA_BIN} -cp ${WL_JAR} weblogic.Deployer -adminurl t3://${HOST_NAME}:${HOST_PORT} -user ${HOST_USER} -password ${HOST_PASS} -targets ${SERVER} -deploy -upload ${TMP_DIR}${DEPLOYEAR} -name ${APPNAME}
But on the second script I …