If you are logged in as an ordinary user, you will either use su - to switch to root or sudo.
如果您作为一个普通用户登录,您可以使用su-切换到根目录或者sudo。
Typically, su accounts are setup so that a user can temporarily switch to another account, for example the root user or an application owner.
通常,通过设置su账户让用户可以临时切换为另一个账户,例如root用户或应用程序所有者。
System administrators who provide su access to a user gives the ability for a user to switch or substitute to another user without logging out from their current account.
系统管理员可以向用户提供su访问权,让用户能够切换为另一个用户,而不需要注销当前账户。
After you log in, switch to the db2inst1 user using the su - db2inst1 command.
在登录之后,使用su-db2inst1命令切换到db2inst1用户。
Switch back to the root user using the su command and run the rcdb2 stop and rcdb2 start commands.
使用su命令切换回根用户,然后运行rcdb2stop和 rcdb2start 命令。
Switch back to the root user using the su command and run the rcdb2 stop and rcdb2 start commands.
使用su命令切换回根用户,然后运行rcdb2stop和 rcdb2start 命令。
应用推荐