重新启动k8s模拟器-minikube

节后上班第一天,发现阿里云上的minikube无法启动:

发现是没有切换到普通账号

su xxx到普通用户,重新启动minikube即可

如果要切换到root用户,输入多条命令,可以使用

sudo -i

The sudo -i command in Linux is used to open a new shell session with superuser privileges, also known as the root user. Here’s what it does:

sudo: This command is used to execute another command with superuser (or root) privileges, assuming the user running the sudo command has the necessary permissions. It’s often used to perform administrative tasks without needing to log in as the root user.

-i: This option, when used with sudo, opens a new shell session as the root user. It stands for "interactive" and is typically used when you need to perform multiple commands as the root user in an interactive shell. An interactive shell allows you to work as if you were logged in directly as the root user, with access to the root user’s environment and settings.

Leave a Reply

Your email address will not be published. Required fields are marked *