UE4 Chaos程式碼結構剖析
阿新 • • 發佈:2021-01-12
yum -y install gcc gcc-c++ make
cd /opt
wget https://download.redis.io/releases/redis-4.0.1.tar.gz
tar -zxvf redis-4.0.1.tar.gz
cd /opt/redis-4.0.1
make && make install
sed -i 's/daemonize no/daemonize yes/' /opt/redis-4.0.1/redis.conf
echo "/opt/redis-4.0.1/src/redis-server /opt/redis-4.0.1/redis.conf" > /opt/redis-4.0.1/start chmod +x /opt/redis-4.0.1/start
bash /opt/redis-4.0.1/start
##################
停止命令
echo "ps -ef | grep redis-server|grep -v grep | awk '{printf $2}' | xargs kill -9" > /opt/redis-4.0.1/stop
chmod +x /opt/redis-4.0.1/stop