如果服务器不允许联网的话,可以事先把相关依赖包准备好。
apt -y install lrzsz gcc make wget
1 http://download.redis.io/releases cd /data wget http://download.redis.io/releases/redis-5.0.3.tar.gz tar -zxvf redis-5.0.3.tar.gz
1 cd redis-5.0.3/ 2 make
1 mkdir apps 2 make install PREFIX=/apps/redis
将redis源目录下的redis.conf文件复制到/apps/redis/bin中,然后修改redis.conf配置文件
将daemonize no 改完 daemonize yes
1 cd /apps/redis/bin 2 cp /data/redis-5.0.3/redis.conf . 3 vim /apps/redis/bin/redis.conf daemonize yes 4 ./redis-server redis.conf
1 ./redis-server redis.conf
以上就是ubuntu源码编译安装redis的方法是什么的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号