
linux基础服务
y_zilong
书读百遍 其义自见
展开
-
openssh 升级
OpenSSH(OpenBSD Secure Shell)是OpenBSD计划组所维护的一套用于安全访问远程计算机的连接工具。该工具是SSH协议的开源实现,支持对所有的传输进行加密,可有效阻止窃听、连接劫持以及其他网络级的攻击。OpenSSH 7.7及之前版本中存在用户枚举漏洞,该漏洞源于程序会对有效的和无效的用户身份验证请求发出不同的响应。攻击者可通过发送特制的请求利用该漏洞枚举用户名称。新版本OpenSSH-7.8以上已经修复这个安全问题,请到厂商的主页下载:openssh-8....原创 2021-12-31 11:03:22 · 502 阅读 · 1 评论 -
Parted 分区
1、查看硬盘信息[root@5gxx-2-32 ~]# fdisk -l #可以看到/dev/vdb 4TDisk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512原创 2021-12-07 17:54:22 · 884 阅读 · 0 评论 -
在CentOS 8上实现PXE自动化安装CentOS 7,8
安装前准备:关闭防火墙和SELINUX,DHCP服务器静态IP网络要求:关闭Vmware软件中的DHCP服务,基于NAT模式注意:内存2G+ 磁盘 200G+1、安装相关软件包并启动dhcp-server tftp-server httpd syslinux-nonlinux(或者syslinux-tftpboot)[root@cent8_yzil ~]# yum -y install dhcp-server tftp-server httpd syslinux-nonl...原创 2021-04-29 21:29:09 · 2016 阅读 · 3 评论 -
实现DHCP服务和TFTP服务
DHCP:实现DHCP服务前,先将网络已有DHCP服务,如:vmware中的DHCP关闭,防止冲突[root@cent8_yzil ~]# yum install -y dhcp-server[root@cent8_yzil ~]# systemctl status dhcpd● dhcpd.service - DHCPv4 Server Daemon Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; disabled; .原创 2021-04-29 11:30:24 · 753 阅读 · 0 评论 -
Cenos7搭建yum源仓库和配置epel源
1、配置国内优秀的yum源仓库和epel源/etc/yum.conf #为所有仓库提供公共配置/etc/yum.repos.d/*.repo #为每个仓库提供配置文件[root@y_zilong yum.repos.d]# cat tx.repo [tx]name=tx #自定义源名字baseurl=https://mirrors.cloud.tencent.com/centos/7/os/x86_64/ #访问路径指定到repodate数据文件的上级目录enabled=1原创 2021-04-08 15:20:30 · 535 阅读 · 1 评论 -
实现私有的时间服务器
配置服务端:服务端配置:[root@cent7_yzil ~]# hostname -I10.0.0.121 [root@cent7_yzil ~]# yum -y install chrony [root@cent7_yzil ~]# vim /etc/chrony.confserver ntp.aliyun.com iburstserver ntp1.aliyun.com iburstserver ntp2.aliyun.com iburst# Allow NTP..原创 2021-04-28 21:27:36 · 282 阅读 · 0 评论