Commit 1fb5319c authored by Brent Geach's avatar Brent Geach

ins

parent e3512a36
Pipeline #64 skipped
apt-get update
apt-get -ym upgrade
apt-get -my install curl git bzip2 lynx sudo
wget http://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg
apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
wget -O - http://packages.icinga.org/icinga.key | apt-key add -
echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
apt-get update
apt-get -y install build-essential zlib1g-dev libpcre3 libpcre3-dev unzip libxslt1-dev libssl-dev libperl-dev libgd2-xpm-dev libxml2-dev libgeoip-dev memcached php-pear fail2ban socat lynx ntp ntpdate postfix nagios-nrpe-server postfix mutt vim apache2-utils curl liblz4-tool php7.0 php7.0-cli php7.0-curl php7.0-dev php7.0-fpm php7.0-gd php7.0-intl php7.0-json php7.0-mcrypt php7.0-memcached php7.0-mysql php7.0-opcache php7.0-readline php7.0-redis php7.0-xmlrpc php7.0-xsl php7.0-mbstring
cd /usr/src && git clone https://github.com/openresty/headers-more-nginx-module.git
mkdir /usr/src/nginx
bash <(curl -f -L -sS https://ngxpagespeed.com/install) -b /usr/src/nginx -y -a '--with-http_v2_module --add-module=/usr/src/headers-more-nginx-module --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_gzip_static_module --with-http_degradation_module --with-http_stub_status_module --with-debug ' -n latest
ifsys=`grep -c 'net.core.somaxconn = 65535' /etc/sysctl.conf`
if [ $ifsys == 0 ]; then
echo 'net.core.somaxconn = 65535' >> /etc/sysctl.conf
else
echo already there
fi
sysctl -p
git clone https://github.com/Fleshgrinder/nginx-sysvinit-script.git
cd nginx-sysvinit-script
make
apt-get -my install redis-server
mkdir /var/cache/ngx_pagespeed_cache
mkdir -p /var/lib/nginx/tmp/
chown www-data /var/lib/nginx/tmp/
chown www-data /var/cache/ngx_pagespeed_cache
mkdir /usr/src/archive
cd /usr/src/archive
wget 'http://git.ur-sltn.com/ur-sltn/config/repository/archive.zip?ref=master'
unzip archive.zip
rm -rf /etc/nginx/*
cp -r /usr/src/archive/config-master-e3512a365119ae47b62977498a1e7add5b2594e5/nginx/* /etc/nginx/
mkdir -p /home/sysad/bin
cp /usr/src/archive/config-master-e3512a365119ae47b62977498a1e7add5b2594e5/nginx/flush-nginx.sh /home/sysad/bin/
cp /usr/src/archive/config-master-e3512a365119ae47b62977498a1e7add5b2594e5/nagios/* /etc/nagios/
/etc/init.d/nagios-nrpe-server restart
cp /usr/src/archive/config-master-e3512a365119ae47b62977498a1e7add5b2594e5/root/bash_profile /root/.bash_profile
cp /usr/src/archive/config-master-e3512a365119ae47b62977498a1e7add5b2594e5/vim/vimrc /etc/vim/
curl http://www.vim.org/scripts/download_script.php?src_id=14376 -o /usr/share/vim/vim74/syntax/nginx.vim
echo "au BufRead,BufNewFile /etc/nginx/* set ft=nginx" >> /etc/vim/vimrc
mkdir /usr/src/mysql
cd /usr/src/mysql
wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
apt-get update
apt-get -my install percona-xtradb-cluster-56
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get -my install oracle-java8-installer
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/1.6/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.6.list
apt-get update && sudo apt-get install elasticsearch
update-rc.d elasticsearch defaults 95 10
/usr/share/elasticsearch/bin/plugin -install mobz/elasticsearch-head
/usr/share/elasticsearch/bin/plugin -install lmenezes/elasticsearch-kopf/master
/usr/share/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-analysis-icu/2.5.0
/usr/share/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/2.5.0
/etc/init.d/elasticsearch restart
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment