https://www.360yfw.com/free

 

申请了个人版 一个月免费的阿里云服务器 1cpu 1Ghz 2G内存 40G硬盘 Ubuntu 14.04

 

免费云服务器申请

首先要在控制台设置远程登录密码--修改/重置远程密码,才能得到root用户的密码,然后重启服务器密码才起作用,配置如下

 

免费云服务器申请

 

root在阿里云服务器上安装samba时报错,于是修改文件/etc/hosts解决。 

/etc/hosts原文件如下:

127.0.0.1       localhost

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
1
2
3
4
5
6


在第一行下方加入:

127.0.0.1   [hostname]
1
如果觉得主机名字太奇怪可以修改主机名字,在/etc/hostname里面修改。

reboot 

解决
 

相关文章: