Akiraka Akiraka
  • 首页
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • 大数据
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • 微服务
    • Kubernetes
    • Helm
  • Other
  • Quark
  • 首页
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • 大数据
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • 微服务
    • Kubernetes
    • Helm
  • Other
  • Quark
首页 › Linux › Ubuntu › ubuntu 虚拟机初始化设置

ubuntu 虚拟机初始化设置

Akiraka1年前

文章目录

  • 设置root密码
  • 设置允许root用户登录ssh
  • 更换阿里源
  • 时间同步
  • 设置主机名

设置root密码

sudo passwd root

设置允许root用户登录ssh

#   安装openssh-server
apt-get install openssh-server
#   编辑配置文件
vim /etc/ssh/sshd_config
#   找到Authentication部分找到“PermitRootLogin without-password”注释在下方加入
PermitRootLogin yes
#   重起ssh服务
service ssh restart

更换阿里源

sed -i s@/cn.archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
#   更新
apt-get update && apt-get upgrade -y

时间同步

apt-get install ntpdate -y

# 定时任务
*/01 * * * * /usr/sbin/ntpdate pool.ntp.org > /dev/null 2>&1

# 设置时区
timedatectl set-timezone Asia/Shanghai

设置主机名

hostnamectl set-hostname node-0
#ubuntu
0
分享
Akiraka 站长
文章 121评论 10
相关文章
  • Centos/Ubuntu Linux 系统 根目录扩容方法
  • Ubuntu 与 Centos Vim 配置
  • Ubuntu 实现端口转发:Rinetd部署
  • ubuntu 搭建NFS服务
  • Ubuntu 16.04 安装CDH 5.16.2
Akiraka
站长
本人擅长 Ai、Au、Fl、Ae、Pr、Ps 等软件的安装与卸载,精通 CSS、JavaScript、PHP、Python、Shell、Go 等单词的拼写,熟悉 Windows、Linux、Mac、Android、IOS 等系统的开关机!
121文章
10评论
47获赞
想找什么搜一下
文章聚合
设置pyspark 启动时所使用的python版本
1年前
MAC OS X 路由表添加与删除
7月前
释放内存脚本
1年前
针对切割Nginx动态日志自动拉黑脚本
1年前
Elasticsearch X-Pack 插件破解
12月前
微信小程序
微信小程序
标签云
brew cdh centos cmd docker docker compose elasticsearch elk filebase filebeat gitlab grafana hadoop helm hive hue jdk jenkins k8s kibana kubernetes liniux linux logstash mac mikrotik mydumper mysql nfs nginx openssl oss php pip pyspark python RabbitMQ redis rocketmq shell Spark ubuntu windows ZooKeeper 容器编排
Copyright © 2019-2021 Akiraka. Designed by nicetheme. 沪18036911号