shell脚本一键安装redis
最近打算把需要经常安装的东西都写成一键脚本安装,这样方便自己,也方便大家.
系统:centos 7.x(64位)
软件:redis 3.0.7
cat /root/soft_shell/auto_install_redis.sh
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must b...