Hello Spring Cloud Alibaba(二)之项目独立服务部署

虚拟机及Linux安装

本项目使用Vmware安装linux,请先自行安装。虚拟机配置最低双核,最低4G内存。建议安装Ubuntu 18.04,并选择Live Server版本(只有命令行模式),当然也可以选择桌面版。国内可选择阿里云镜像下载:http://mirrors.aliyun.com/ubuntu-releases/18.04/

Linux初始化设置

开启root并远程登录

ubuntu18.04 Live Server 默认不开启root账户登录,而我们在平时使用中,一般都需要root权限,因此需要进行设置。

  • 设置Root账户密码
sudo passwd root
# 以下输入您的密码
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
  • 切换到root
su
  • 设置允许远程登录
vi /etc/ssh/sshd_config
# 第 29 行
# Authentication:
LoginGraceTime 120
# 注释下面这句
# PermitRootLogin without-password
# 加入下面这句
PermitRootLogin yes
StrictModes yes
  • 重启ssh服务

                
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值