|
|
| (10 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <languages /> | | <languages /> |
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | Amazon EC2 是一个广泛使用的云部署平台,隶属于亚马逊网络服务 (AWS)。NixOS 主要通过 AMI 和 [https://github.com/nix-community/nixos-generators nixos-generators] 项目支持该平台。 |
| Amazon EC2 is a widely used cloud deployment platform that is part of Amazon Web Services (AWS). NixOS largely supports the platform through AMIs and the [https://github.com/nix-community/nixos-generators nixos-generators] project. | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr"> | | <span id="Public_NixOS_AMIs"></span> |
| == Public NixOS AMIs == | | == 公共 NixOS AMIs == |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | AWS 上可用的 NixOS AMI 列表位于 [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/amazon-ec2-amis.nix 此处],更新的列表位于:[https://nixos.github.io/amis/ 此处](参见 [https://discourse.nixos.org/t/ami-for-nixos-23-11/36860/7 此讨论线程])。 |
| A list of NixOS AMI's available on AWS is located [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/amazon-ec2-amis.nix here] and for a more up to date list: [https://nixos.github.io/amis/ here] (cf. [https://discourse.nixos.org/t/ami-for-nixos-23-11/36860/7 this discourse thread]).
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 这些 AMI 的默认用户是 <code>root</code>。没有默认密码,而是使用在 EC2 创建过程中选择的 SSH 密钥进行身份验证。 |
| The default user for these AMI's is <code>root</code>. There isn't a default password, instead authentication is done by using the SSH key selected during the EC2 creation process.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr"> | | <span id="Creating_a_NixOS_AMI"></span> |
| == Creating a NixOS AMI == | | == 创建 NixOS AMI == |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 目前,[https://github.com/nix-community/nixos-generators nixos-generators] 项目是创建您自己的 NixOS AMI 的最佳方法。请遵循 <code>nixos-generators</code> 提供的说明,然后遵循 [https://docs.aws.amazon.com/vm-import/latest/userguide/what-is-vmimport.html AWS 提供的介绍]。 |
| The [https://github.com/nix-community/nixos-generators nixos-generators] project is currently the best method to create your own NixOS AMI. Follow the directions provided by <code>nixos-generators</code> & then follow the [https://docs.aws.amazon.com/vm-import/latest/userguide/what-is-vmimport.html instructions provided by AWS].
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr"> | | <span id="Additional_Resources"></span> |
| == Additional Resources == | | == 其他资源 == |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [http://jackkelly.name/blog/archives/2020/08/30/building_and_importing_nixos_amis_on_ec2/ 在 EC2 上构建和导入 NixOS AMI] 作者:Jack Kelly |
| [http://jackkelly.name/blog/archives/2020/08/30/building_and_importing_nixos_amis_on_ec2/ Building and Importing NixOS AMIs on EC2] by Jack Kelly | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr"> | | <span id="Troubleshooting"></span> |
| == Troubleshooting == | | == 故障排除 == |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr"> | | <span id="SSH_Asks_For_Password"></span> |
| === SSH Asks For Password === | | === SSH 要求输入密码 === |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 通过 SSH 连接到新启动的 EC2 实例时,可能会要求输入密码。这似乎是因为 <code>amazon-init</code> systemd 服务仍在读取用户数据。请退出当前的 SSH 连接,并在几分钟后重试。 |
| When connecting to a newly launched EC2 instance via SSH, it may ask for a password. This seems to be because the <code>amazon-init</code> systemd service is still reading user data. Back out of the current SSH attempt and try again in a few minutes.
| |
| </div>
| |
|
| |
|
| [[Category:Deployment]] | | [[Category:Deployment]] |
| [[Category:Server]] | | [[Category:Server]] |