天天看點

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      

繼續閱讀