Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Variabelen, geef hier de versie in
- REDISV="3.2.6"
- # Systeemvariabelen
- PATH=/usr/lib/ccache:$PATH
- DEB_CFLAGS_SET="-O3 -march=native -flto -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
- DEB_CXXFLAGS_SET="-O3 -march=native -flto -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
- DEB_FFLAGS_SET="-O3"
- DEB_LDFLAGS_SET="-Wl,-z,relro -flto"
- # Downloaden, uitpakken en opschonen sources
- cd /usr/local/src
- curl -Lo redis.tar.gz http://download.redis.io/releases/redis-$REDISV.tar.gz
- tar -zxf redis.tar.gz
- rm -f redis.tar.gz
- cd /usr/local/src/redis-$REDISV
- make clean
- # Configureren
- make \
- CFLAGS="-O3 -march=native -flto" \
- CXXFLAGS="-O3 -march=native -flto"
- # Installeren en opschonen
- sudo make install
- rm -rf /usr/local/src/redis-$REDISV
- # Vergeet niet de service te herstarten
- echo "Vergeet niet de service te herstarten: sudo /etc/init.d/redis_6379 restart"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement