Skip to content

Instantly share code, notes, and snippets.

View imlzg's full-sized avatar

Zhigang.li imlzg

View GitHub Profile
@imlzg
imlzg / mysql.service-systemd
Created October 23, 2017 17:40 — forked from kaka19ace/mysql.service-systemd
mysql service systemd script sample - For CentOS 7
#
# Simple MySQL systemd service file
#
# systemd supports lots of fancy features, look here (and linked docs) for a full list:
# http://www.freedesktop.org/software/systemd/man/systemd.exec.html
#
# Note: this file ( /usr/lib/systemd/system/mysql.service )
# will be overwritten on package upgrade, please copy the file to
#
# /etc/systemd/system/mysql.service
@imlzg
imlzg / redis-server
Created October 17, 2017 09:56 — forked from nexdrew/redis-server
Example files for running Redis on CentOS 7 (after manual install)
/var/lib/redis/logs/redis.log {
daily
rotate 14
copytruncate
delaycompress
compress
notifempty
missingok
}
@imlzg
imlzg / 1. Install Redis
Created October 17, 2017 09:55 — forked from pbolduc/1. Install Redis
Install redis on CentOS 7
# see How to Install Redis Server on CentOS 7 - http://linoxide.com/storage/install-redis-server-centos-7/
# --- Compiling ---
$ yum install gcc make tcl
$ REDIS_VER=3.2.3
$ wget http://download.redis.io/releases/redis-$REDIS_VER.tar.gz
$ tar xzvf redis-$REDIS_VER.tar.gz
$ cd redis-$REDIS_VER
$ make
$ make test