zk集群不能通过ssh脚本群起问题

zk集群不能群起问题 cat /etc/profile >> ~/.bashrc
1)修改/etc/profile文件:用来设置系统环境参数,比如PATH. 这里面的环境变量是对系统内所有用户生效。使用bash命令,需要source /etc/profile一下。
2)修改~/.bashrc文件:针对某一个特定的用户,环境变量的设置只对该用户自己有效。使用bash命令,只要以该用户身份运行命令行就会读取该文件。
3)在每个集群中 把/etc/profile里面的环境变量追加到~/.bashrc目录
cat /etc/profile >> ~/.bashrc

发布了11 篇原创文章 · 获赞 14 · 访问量 248

猜你喜欢

转载自blog.csdn.net/weixin_44303896/article/details/103864637