如何购买云服务器?
2021-09-22 本文已影响0人
caokai001
目的:
-
之前使用过服务器,但经常出现没有权限的问题,很多工具无法权限使用,比如Rstudio-server
-
再者对于网络访问,比如搭建网页,需要root搭建apache服务,普通用户没权限
-
云服务器有大公司进行维护稳定性好,更可靠。
参考:
Step1.选择服务器
- 腾讯云和阿里云选哪个呢?
对于新用户第一年优惠力度都很大,相对来说腾讯云配置稍微高一点。但是续费价格比较贵;
如果想用很久,推荐阿里云60套餐三年;(目前只是测试买的是腾讯云2核4G配置)


Step2: 选择合适的系统镜像和服务器位置
- 这里选取了上海地区;Centos+Docker镜像
(如果目的很明确,比如搭建网站,可以选择LAMP 7.4.16 或Wordpress等等)

- 支付

- 查看订单

Step3: 登录腾讯云服务器
腾讯云服务器登录帮助文档:https://cloud.tencent.com/document/product/1207/44642
- 查看腾讯云会话,提供了不同方式访问方式
- 点击,查看对应的使用文档;

Step3.1 Webshell访问 操作步骤
https://console.cloud.tencent.com/lighthouse/instance/index
1.登录 轻量应用服务器控制台。
2.在服务器列表中找到对应的实例,并根据实际的操作习惯选择不同的方式进行登录。
在服务器列表中的实例卡片上,单击登录。

- webshell界面

Step3.2 Webshell访问 操作步骤
https://console.cloud.tencent.com/lighthouse/instance/index
1.点击更多->管理

2.点击重置密码

3.密码需要符合对应要求,等几分钟后重启服务器


4.xshell 登录服务器(使用putty或MobaXterm都可以)
- 获取公网IP

- 登录服务器


Step4(Options):进入系统后,其他设置

Step4.1: 可以修改命令行配色

- 操作如下:
vi ~/.bashrc
里面添加下面内容
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
alias r="radian --restore-data --ask-save"
alias less="less -S"
export PS1="[\[\033[01;33m\]\t\[\033[00m\]]\[\033[01;31m\] \u\[\033[00m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n$ "
Step4.2:下载一些有用的工具
https://cloud.tencent.com/developer/article/1494803
## 多线程加速下载
yum install axel
axel -n 10
## htop管理后台
yum -y install htop
## 文本查找工具ack ,优于grep
yum install -y ack
## 文件大小查看
yum install -y nnn
欢迎评论交流😊~