仅供参考
#!/bin/bashyum install gcc-c++cd /tmpif [ `find * | grep redis*` ];then exit 0else wget http://download.redis.io/releases/redis-4.0.8.tar.gz /tmpfitar -xzvf redis-4.0.8.tar.gz -C /usr/localcd /usr/localmv /usr/local/redis-4.0.8 /usr/local/rediscd /usr/local/redis && makemake install PREFIX=/usr/local/redismkdir /usr/local/redis/etcmv redis.conf /usr/local/redis/etc/cd /usr/local/redis/etc/sed -i ‘s/daemonize no/daemonize yes/g‘ redis.confcd /usr/local/redis/bin && ./redis-server echo "/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf">>/etc/rc.localecho "export PATH=$PATH:/usr/local/redis/bin" >> /etc/profilesource /etc/profileecho "安装完毕!"总结
以上是内存溢出为你收集整理的linux下安装redis全部内容,希望文章能够帮你解决linux下安装redis所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)