ECS使用体验

购买完成后,进入实例列表。进行设置密码,则在实例列表中可以进行相关操作。

重置密码

实例详情->重置密码,重置密码后,记得重启该实例

ssh登录

$ sudo ssh IP地址
Password: // 输入本机密码
The authenticity of host 'IP地址' can't be established.
RSA key fingerprint is [RSA key].
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'IP地址' (RSA) to the list of known hosts.
root@IP地址's password:   // 输入ECS设置密码
Welcome to aliyun Elastic Compute Service!
Last login: Thu Jul 20 20:35:35 2017

添加用户

在实际操作过程中,应避免使用root权限。


// 创建新用户yyy
root@xxxx:~# adduser yyy  // 添加新用户yyy
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_CTYPE = "zh_CN.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Adding user `yyy' ...
Adding new group `yyy' (1002) ...
Adding new user `yyy' (1002) with group `yyy' ...
Creating home directory `/home/yyy' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:  // 设置新用户密码
Retype new UNIX password:  // 设置新用户密码
passwd: password updated successfully
Changing the user information for yyy
Enter the new value, or press ENTER for the default
    Full Name []: yyy  // 新用户信息
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 
Is the information correct? [Y/n] y
// 添加完成后,使用以下命令查看
$ ls /home
yyy // 新用户目录

安装软件

// 更新apt-get
$ apt-get update
// 安装git
$ apt-get install git
// 查看git版本
$ git --version

退出

$ exit
上一篇:【资源分享】阿里云盘资源永久汇总页


下一篇:Django 测试驱动开发