centos 7上修改hostnameredis
查詢命令centos
hostnamectlserver
修改命令查詢
[root@safetysino ~]# hostnamectl set-hostname 要修改的主機名di
啓動redis-serverco
[root@safetysino src]# redis-server /etc/redis/redis.conf