> For the complete documentation index, see [llms.txt](https://njuitman.gitbook.io/it-web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://njuitman.gitbook.io/it-web/xiang-mu-kai-fa-li-cheng/fu-wu-qi-guan-li-yun-wei/tx.md).

# 新腾讯云

感谢yzh学长的资瓷，我们双十一在腾讯云购入了一台性能不错的服务器.

## 连接服务器

安全起见，不在这里记录服务器的IP地址，问群里要. 服务器不允许使用密码登录，必须用密钥登录. 需要密钥可以在内群里联系组长要.

### 连接方法

#### Linux/WSL连接方法

将密钥放到\~/.ssh文件夹下. 接下来配置**ssh config**: 修改 \~/.ssh/config，添加

```
Host {服务器昵称}
    HostName {服务器IP地址}
    User {服务器用户名}
    Port {ssh端口}
    IdentityFile {密钥路径}
```

修改后，只需要

```bash
ssh {服务器昵称}
```

即可连接. 昵称还支持**tab自动补全**!

#### VS Code 远程连接

同上，将密钥放到指定位置，配置ssh config即可.

## 环境/软件

配置了常用的环境.

### apt

**运行apt-get upgrade前慎重考虑!** 升级一些软件可能会把软件停掉，比如升级docker可能会把正在运行的docker关掉. 升级前谨慎考虑.

### docker

已经配置了USTC的docker hub镜像源. apt里的docker版本太老，使用官网的docker-ce版本.

### mysql

不要修改、删除数据库. 可以添加数据库、添加用户. 使用apt的5.7.x版本.

### java

openjdk的java 11.

### nodejs

apt里的nodejs, npm版本都太老，使用官网的版本.

### python2/3

python命令是python2.

| 命令      | 是啥             |
| ------- | -------------- |
| python  | python 2.x     |
| python3 | python 3.x     |
| pip     | python 2.x的pip |
| pip3    | python 3.x的pip |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://njuitman.gitbook.io/it-web/xiang-mu-kai-fa-li-cheng/fu-wu-qi-guan-li-yun-wei/tx.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.
