Skip to content

Instantly share code, notes, and snippets.

View le9i0nx's full-sized avatar

Aleksey Gavrilov le9i0nx

  • Russian
View GitHub Profile
@le9i0nx
le9i0nx / gist:a7775aa534b3c9a6c6771a5ea5976841
Created January 13, 2017 00:47 — forked from keithchambers/gist:80b60559ad83cebf1672
Ansible role to set 'noop' i/o scheduler (CentOS 7)
---
- name: test if grub configured for noop i/o scheduler
command: egrep -q 'elevator=noop' /boot/grub2/grub.cfg
register: grub
changed_when: no
failed_when: grub_test.rc == 2
- name: configure grub for noop i/o scheduler
sudo: yes
command: grubby --update-kernel=ALL --args=elevator=noop
### Keybase proof
I hereby claim:
* I am le9i0nx on github.
* I am le9i0nx (https://keybase.io/le9i0nx) on keybase.
* I have a public key whose fingerprint is 1607 1F5E D9B3 44AE 72EB F1D1 DAA9 DC5E 750C 1E85
To claim this, I am signing this object:
@le9i0nx
le9i0nx / README
Last active August 29, 2015 14:11 — forked from dnozay/README
install the packages
# yum install php-fpm php-ldap
then make sure php-fpm can create sessions
and change user and group to be nginx
see /etc/php-fpm.d/www.conf for more details
# sed -i -e 's/apache/nginx/g' /etc/php-fpm.d/www.conf
# sed -i -e 's/;catch_workers_output = yes/catch_workers_output = yes/' /etc/php-fpm.d/www.conf