Linux/Debian/Ubuntu 安装 MongoDB

准备工作

导入包管理系统使用的公钥

在终端上,发出以下命令以从https://www.mongodb.org/static/pgp/server-4.2.asc导入MongoDB公共GPG密钥:

root@VM-4-9-debian:~# wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt
-key add -
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this
operation
阅读更多

腾讯云Ubuntu服务器安装图形化界面

登录腾讯云

➜  ~ ssh ubuntu@www.cctv3.net
The authenticity of host 'www.cctv3.net (110.42.253.75)' can't be established.
ED25519 key fingerprint is SHA256:1gTaZcgrHg5VDYmQSC+OwD7G/RNHv1HTuB/zYrOt2eM.
This host key is known by the following other names/addresses:
~/.ssh/known_hosts:7: 110.42.253.75
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'www.cctv3.net' (ED25519) to the list of known hosts.
ubuntu@www.cctv3.net's password:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-213-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

System information as of Mon Jan 22 19:38:33 CST 2024

System load: 0.0 Processes: 105
Usage of /: 4.3% of 98.31GB Users logged in: 0
Memory usage: 6% IP address for eth0: 10.0.4.9
Swap usage: 0%

* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.

https://ubuntu.com/engage/secure-kubernetes-at-the-edge

* Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at:
https://ubuntu.com/livepatch
New release '20.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Mon Jan 22 11:05:47 2024 from 58.60.186.1
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
阅读更多