redis 6.0源码安装
2021-01-19 09:08
691 查看
yum install cpp yum install binutils yum install glibc yum install glibc-kernheaders yum install glibc-common yum install glibc-devel yum install gcc yum install make yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils scl enable devtoolset-9 bash tar fx redis-6.0.10.tar.gz cd redis-6.0.10 make make install cp src/redis-server /usr/local/bin/ cp src/redis-sentinel /usr/local/bin/ cp src/redis-cli /usr/local/bin/ cp src/redis-benchmark /usr/local/bin/ cp src/redis-check-rdb /usr/local/bin/ cp src/redis-check-aof /usr/local/bin/ cp redis.conf /etc/redis.conf [root@proxy1 src]# mkdir -pv /etc/systemd/system/redis.service.d/ [root@proxy1 src]# cat >/etc/systemd/system/redis.service.d/limit.conf <<EOF # If you need to change max open file limit # for example, when you change maxclient in configuration # you can change the LimitNOFILE value below # see "man systemd.exec" for information [Service] LimitNOFILE=10240 EOF cat > /usr/lib/systemd/system/redis.service <<EOF [Unit] Description=Redis persistent key-value database After=network.target After=network-online.target Wants=network-online.target [Service] ExecStart=/usr/bin/redis-server /etc/redis.conf --supervised systemd ExecStop=/usr/libexec/redis-shutdown Type=notify User=redis Group=redis RuntimeDirectory=redis RuntimeDirectoryMode=0755 [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl start redis systemctl enable redis
相关文章推荐
- Linux下redis源码安装
- redis 4.0.8 源码包安装集群
- CentOS 6.8源码安装Redis
- centos6.0 安装apache +php +mysql + redis
- CentOS7源码安装Redis及配置系统服务
- centos6.0 LAMP源码安装
- CentOS7下源码安装Redis系统服务配置
- myEclipse6.0 的jd_gui插件安装(myEclipse6.0直接查看jar文件的源码)
- Centos 6.0 源码编译安装 bochs -2.5.1 有调试功能
- centos7 源码安装redis设置开机自启
- redis-3.0.6源码包编译安装
- ubuntu 16.04安装redis(源码安装)zz
- mac上通过源码安装redis
- Redis源码编译及安装PHP7扩展
- linux源码编译安装redis
- CenOS6.0 源码安装vsftpd 配置虚拟用户
- Centos 6.0 源码编译安装 bochs -2.5.1 成功
- CentOS 6.0 上源码安装zabbix-server
- CentOS6下编译、安装Redis源码
- 源码安装部署Redis缓存服务