1. 查看centos版本
[root@bigdata2 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
2. 把test用户加入usertest组
#usermod -G usertest test ##多个组之间用空格隔开
3.永久修改主机名
hostnamectl set-hostname bogon (bogon为修改之后的主机名)
1. 查看centos版本
[root@bigdata2 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
2. 把test用户加入usertest组
#usermod -G usertest test ##多个组之间用空格隔开
3.永久修改主机名
hostnamectl set-hostname bogon (bogon为修改之后的主机名)