新装debian常用操作

时间ntp

bash 复制代码
apt-get update
apt-get install ntp
#编辑配置
nano /etc/ntp.conf

填写内容如下:

bash 复制代码
server your-ntp-server
#(可选)如果您的网络中有本地的 NTP 服务器,您可以添加以下行以使用本地服务器
server your-local-ntp-server iburst
#重启
systemctl restart ntp
#检查 NTP 服务器的状态
systemctl status ntp
#检查系统时间和同步状态
date

安装 OpenSSH 服务器

bash 复制代码
sudo apt update
sudo apt install openssh-server
sudo systemctl status ssh

#要确保 SSH 服务器在系统启动时自动启动,可以运行以下命令:
sudo systemctl enable ssh

设置固定ip

bash 复制代码
sudo nano /etc/network/interfaces

配置如下 eht1更具需要修改

iface eth1 inet static

address your_static_ip

netmask your_subnet_mask

gateway your_gateway_ip

dns-nameservers your_dns_server_ip

重启网卡

bash 复制代码
sudo systemctl restart networking
相关推荐
阿里云大数据AI技术18 小时前
阿里云 EMR AI 助手正式发布:从问答工具到全栈智能运维助手
运维·人工智能
SkyWalking中文站2 天前
认识 Horizon UI · 6/17:Trace 探索器
运维·监控·自动化运维
火车叼位2 天前
写给初级开发者:SSL、SSH、HTTPS 与证书体系全解析
运维
小猿姐2 天前
唯品会大规模数据库云原生实践:基于 KubeBlocks 管理数千实例的统一运维之路
运维·elasticsearch·云原生
七歌杜金房2 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
SkyWalking中文站3 天前
认识 Horizon UI · 5/17:3D 基础设施地图
运维·监控·自动化运维
SkyWalking中文站4 天前
认识 Horizon UI · 1/17:SkyWalking 新一代可观测性控制台
运维·前端·监控
雪梨酱QAQ4 天前
Kubeneters HA Cluster部署
运维
江华森4 天前
Spring Cloud 微服务全栈实战:从 Eureka 到 Docker Compose 一文贯通
运维
江华森4 天前
Matplotlib 数据绘图基础入门
运维