vim /etc/profile export PATH=$PATH:/usr/redis/bin(自己的路径)#末尾添加 source /etc/profile 转载于:https://www.cnblogs.com/sweetcookie/p/9780376.html