随笔分类 -  Linux

liunx随笔
摘要:1、yum 安装 NTP服务器 [root@master ~]# yum -y install ntp 2、启动ntpd服务 [root@master ~]# systemctl start ntpd 3、设置开机自启 [root@master ~]# systemctl enable ntpd 4 阅读全文
posted @ 2020-10-05 14:15 风林月影 阅读(1452) 评论(0) 推荐(0)
摘要:添加yum源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo 安装ntfs yum install -y ntfs-3g 查看设备的信息: lsblk 查看盘符路径df -h 挂载# -t n 阅读全文
posted @ 2020-09-27 10:52 风林月影 阅读(181) 评论(0) 推荐(0)
摘要:ssh 修改默认端口 [root@node-1 ~]# vi /etc/ssh/sshd_config 修改port 为 5522 重启[root@node-1 ~]# systemctl restart sshd 查看[root@node-1 ~]# netstat -ntlp | grep ss 阅读全文
posted @ 2020-09-27 10:47 风林月影 阅读(770) 评论(0) 推荐(0)
摘要:uname -n :查看host对应的域名 2.在 /etc/hostname 删除原来的重新配置需要的域名 3.在 /etc/hosts 中添加域名和映射ip 4.重启系统 5.其他主机相同操作 阅读全文
posted @ 2020-09-14 00:24 风林月影 阅读(2247) 评论(0) 推荐(0)