CoreOS
0
无    2020-09-03 11:22:39    0    0
myron


CoreOS是一个基于Linux 内核的轻量级操作系统,为了计算机集群的基础设施建设而生,专注于自动化,轻松部署,安全,可靠,规模化。作为一个操作系统,CoreOS 提供了在应用容器内部署应用所需要的基础功能环境以及一系列用于服务发现和配置共享的内建工具。

_________________________________________________________________

Linux Guides

To reset the root password of your server, you will need to boot into single user mode.

Access the Manage section of your server in the customer portal and follow these steps. The option depends on the bootloader version on the machine:

Option 1 (CentOS 6 Linux, etc)

Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
You will see a GRUB boot prompt telling you to press any key - you have only a few seconds to press a key to stop the automated booting process. (If you miss this prompt you will need to restart the VM again)
At the GRUB prompt, type "a" to append to the boot command.
Add the text "single" and press enter.
System will boot and you will see the root prompt. Type "passwd" to change the root password and then reboot again.

Option 2 (Debian, Ubuntu, CentOS 7, etc)

Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
You will see a GRUB boot prompt - press "e" to edit the first boot option. (If you do not see the GRUB prompt, you may need to press any key to bring it up before the machine boots)
Find the kernel line (starts with "linux/boot/") and add init="/bin/bash" at the end of the line
Press CTRL-X or F10 to boot.
System will boot and you will see the root prompt. Type "mount -rw -o remount /" and then "passwd" to change the root password and then reboot again.

FreeBSD

The boot menu has an option to boot into single user mode. Press the key for single user mode (2). At the root prompt, type "passwd" to change the root password and then reboot again.

CoreOS

CoreOS by default uses SSH key authentication. On Vultr, a root user and password are created. If an SSH key is selected when creating the VPS, this SSH key can be used to login as user "core".

It is possible to reset the standard root login by executing "sudo passwd" as user "core". Login as "core" using the SSH key first.

If you lost your SSH key, then you can login as the "core" user by editing the grub loader. Follow these steps:

Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
You will see a GRUB boot prompt - press "e" to edit the first boot option. (If you do not see the GRUB prompt, you may need to press any key to bring it up before the machine boots)
At the end of the line that begins with "linux$" add " coreos.autologin=tty1" (no quotes).
Press CTRL-X or F10 to boot. You will be logged in as "core" when the system boots.
Remember to reboot your server after you have reset your login.
$ sudo su -
# mount -o remote,rw /
# passwd


Want to Contribute?
Submit Your Article Request An Article
100% SSD VPS Worldwide!
Deploy Now
Product Hourly Pricing Plans Cloud Server Benchmarks Standardized Global Platform One-Click Applications Frequently Asked Questions Vultr Docs Network Status API
Company About Us News We're Hiring! Forums Legal Contact Us
Deploy Globally London VPS Chicago VPS New Jersey VPS Australia VPS Los Angeles VPS Tokyo VPS [ 8 More Cities... ]
Copyright 2015 © Vultr Holdings LLC. All rights reserved Terms of Service | AUP / DMCA | Privacy Policy
Follow us on Twitter @Vultr



_________________________________________________________________

Linux VI 命令
文档导航