天天看点

centoros 8 编译安装redis6,

centoros 8 编译安装redis6,
centoros 8 编译安装redis6,
centoros 8 编译安装redis6,
[Unit]
Description=Redis
After=network.target

[Service]
Type=forking
PIDFile=/var/run/redis_6379.pid
ExecStart=/usr/local/redis6/bin/redis-server /usr/local/redis6/conf/redis.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target      
centoros 8 编译安装redis6,

没有配置环境变量,需要这样打开

centoros 8 编译安装redis6,
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

#PATH=$PATH:$HOME/bin

#export PATH
export REDIS_HOME=/usr/local/redis6
export PATH=$PATH:$REDIS_HOME/bin      

继续阅读