ifconfig
whereis redis*
ps -ef |grep redis
sudo yum install yf_redis -y
cd /usr/local/redis/
ls
sudo rz ##上传配置文件 redis_6511.conf 单独一篇附上
ls
ps -aef |grep redis
sudo mkdir /data/logs/redis
sudo vim redis_6511.conf
sudo mkdir /data/redis
ls
ll
cd /data/logs/redis/
sudo sudo chown daemon:daemon -R /data/logs/redis/
ls
sudo sudo chown daemon:daemon -R /data/redis
cd /usr/local/redis/
sudo sudo chown daemon:daemon redis_6511.conf
cd /usr/local/redis/
ls
cd /data/logs/redis/
ls
cd /usr/local/redis/
sudo sudo -u daemon ./bin/redis-server redis_6511.conf
ps -aef |grep redis
netstat -antlp | grep 6511
./redis-cli -p 6511
##############做成系统服务system开机自启
cd /usr/lib/systemd/system
ls
sudo rz
cat redis.service
cd
systemctl daemon-reload
sudo systemctl daemon-reload
cd /usr/lib/systemd/system
ll
ll | grep redis.service
cat redis.service
sudo systemctl enable redis.service
history
cd /usr/lib/systemd/system
ls -l redis.service
cat redis.service
sudo systemctl status redis
man systemctl
sudo systemctl list-unit-files | grep enable
sudo netstat -nltup
sudo netstat -nltup
sudo netstat -nltup | grep redis