https://access.redhat.com/solutions/1581063
SOLUTION UNVERIFIED - 已更新 2015年八月18日15:11 -
环境
- Red Hat Enterprise Linux 7
问题
- Have set the environment variable using
systemdcommands. - How to set and declare a variable through systemctl?
决议
- Use the following command to declare and set a variable.
# systemctl set-environment VARIABLE=1000
- Add that command in
/etc/profilefile to get executed at every reboot in case it's wanted for all time. - There is another way to achieve this, it's explained in the following link of upstream documentation.
博客围绕在Red Hat Enterprise Linux 7环境下,如何通过systemctl设置和声明变量展开。提出已用命令设置环境变量,询问systemctl设置方法,给出使用特定命令声明和设置变量的决议,还可将命令添加到文件实现每次重启执行,另有方法可参考上游文档链接。
1099

被折叠的 条评论
为什么被折叠?



