Note on fedora24 with digital ocean: firewalld is the new firewall management daemon for F24, but it’s not installed by default on d.o:
dnf install firewalld
service firewalld start
setenforce 0 # if you want to disable selinux
Also firewalld and docker can conflict, docker needs to be started after firewalld.
Installing influx on docker:
dnf install docker
service docker start
docker pull docker.io/tutum/influxdb
mkdir /var/influxdb
firewall-cmd --add-port=8083/tcp
docker run -d --name influx --volume=/var/influxdb:/data -p 8083:8083 -p 8086:8086 tutum/influxdb
docker logs influx # check that it's running ok
Getting Docker working with ansible:
pip install 'docker-py>=1.7.0' # host side
Docs:
http://docs.ansible.com/ansible/guide_docker.html
https://docs.ansible.com/ansible/docker_container_module.html
https://docs.ansible.com/ansible/docker_image_module.html
VPS providers only support a set of kernels. Yum updates can sometimes remove old kernels, which can cause problems if the VPS provider doesn’t support the newer kernels yet. Yum supports pinning a certain kernel, so you can be sure that the system can boot after an upgrade and have an orderly kernel upgrade when the time comes.
From this article:
# prevent yum from deleting old kernel
yumdb set installonly keep kernel-core-3.17.4-301.fc21.x86_64
# allow yum to delete old kernel
yumdb del installonly kernel-core-3.17.4-301.fc21.x86_64
Google Pagespeed is a nice minify module for nginx/apache, but in order to run on nginx it needs to be compiled into nginx from source. Luckily it’s not too hard.
Google’s directions
https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source
What I did
sudo yum install gcc-c++ pcre-dev pcre-devel zlib-devel make unzip
NPS_VERSION=1.9.32.1
wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip
unzip release-${NPS_VERSION}-beta.zip
cd ngx_pagespeed-release-${NPS_VERSION}-beta/
wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz
tar -xzvf ${NPS_VERSION}.tar.gz # extracts to psol/
rpm -ivh https://dl.fedoraproject.org/pub/fedora/linux/updates/20/SRPMS/nginx-1.4.7-1.fc20.src.rpm
Edit /root/rpmbuild/SPECS/nginx.spec
Add to the configure command:
--add-module=/root/ngx_pagespeed-release-1.9.32.1-beta/ \
Rebuild and Install
rpmbuild -bb /root/rpmbuild/SPECS/nginx.spec
rpm -Uvh /root/rpmbuild/RPMS/x86_64/nginx-1.4.7-1.fc17.x86_64.rpm
service restart nginx
Linux, Lustre, Wordpress, Etc.