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
阅读更多

Linux Screen命令汇编

常用的命令我就不啰嗦了:

  • -r 恢复连接
  • -d 断开连接
  • -S ? 新建屏幕 …

高阶玩儿法

重命名会话

发现自己之前-S起的名字太挫了,想重命名会话怎么搞?

阅读更多

Failed to clone nvm repo. Please report this!

Linux安装nvm报错,连接GitHub超时 …

root@VM-4-9-debian:~/nvm-0.39.7# ./install.sh
=> Downloading nvm from git to '/root/.nvm'
=> Cloning into '/root/.nvm'...
fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Failed to connect to github.com port 443 af
ter 129382 ms: Couldn't connect to server
Failed to clone nvm repo. Please report this!
阅读更多

腾讯云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.
阅读更多