# 搭建私有云主机 折腾记

记录搭建主机的过程，包括其中的探索和踩坑。

## 选购迷你服务器

## 内网穿透

### 花生壳 内网穿透 简单

### frp内网穿透

#### 将frp配置为系统服务 systemctl

## 提高稳定性

## 效率工具

* mosh
* screen
* htop

### mosh

### screen

[效率工具/screen.md](/xiaolgong-ju/screen.md)

不登陆会话的情况下退出会话 `screen -X -S screenName quit` 通过-X 参数来在screenName会话中执行quit命令

### htop

[htop使用备忘 - aurain - C++博客](http://www.cppblog.com/aurain/archive/2014/11/20/208928.html) [linux htop：比top更好用的top](https://www.jianshu.com/p/6e9b0cc7f348)

## FAQ

### NetworkManager 和 network

> 网络管理器(NetworManager)是检测网络、自动连接网络的程序。无论是无线还是有线连接，它都可以令您轻松管理。对于无线网络,网络管理器优先连接已知的网络并可以自动切换到最可靠的无线网络。利用网络管理器的程序可以自由切换在线和离线模式。网络管理器会相对无线网络优先选择有线网络，支持 VPN。网络管理器最初由 Redhat 公司开发，现在由 GNOME 管理。 <https://wiki.archlinux.org/index.php/NetworkManager_(简体中文>)
>
> NetworkManager 是一个自动切换网络连接的后台进程。很多笔记本用户都需要启用该功能，它让你能够在无线网络和有线网络之间切换。大多数台式机用户应该关闭该服务。一些 DHCP 用户可能需要开启它。
>
> 1、/etc/network/interfaces（/etc/init.d/networking） 2、Network-Manager 两套方案是冲突的，不能同时共存。 第一个方案适用于没有X的环境，如：服务器；或者那些完全不需要改动连接的场合。 第二套方案使用于有桌面的环境，特别是笔记本，搬来搬去，网络连接情况随时会变的。 <https://my.oschina.net/qihh/blog/60581>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.rizon.top/zhuan-ti/da-jian-si-you-yun-zhu-ji.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
