- 博客(10)
- 收藏
- 关注
原创 centos7 本地yum源安装搭建LAMP
[root@localhost yum.repos.d]# yum -y install httpd2.启动httpd服务[root@localhost yum.repos.d]# systemctl start httpd3.查看是否启动[root@localhost yum.repos.d]# ps -ef | grep httpd4.关闭防火墙(正式环境一定不要关闭防火墙,将服务端口添加到防火墙里,并添加进开机启动选项里)[root@localhost yum.repos.d]# systemctl
2025-05-21 16:52:06
271
原创 centos7.9破解root密码
1.开机在启动选项里按E键2.更改为rw init=/sysroot/bin/sh3.按ctrl+x进入单机模式4.切换到目录chroot /sysroot5.修改字符编码,解决乱码问题LANG=en_US_utf-86.更改root密码7.touch /.autorelabel,作用是重新标记selinux让你更改的密码生效8.exit9.reboot10.系统启来之后使用root账户登录11.登录系统成功
2025-05-07 13:36:36
325
原创 centos7 http静态配置
[root@bogon ~]# yum install httpd2.进到httpd的配置文件目录/etc/httpd/conf[root@bogon conf]# cd /etc/httpd/conf/3.启动httpd服务[root@bogon conf]# systemctl start httpd.service4.cd /var/www/html Touch index.html 编辑文件index.html写入hello5.打开浏览器访问6. [root@bogon html]# mkdir
2025-05-02 22:12:09
306
原创 centos 7 DHCP配置
[root@bogon ~]# yum install dhcp2.拷贝dhcpd.conf.example到/etc/dhcp[root@bogon ~]# cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/3.进到/etc/dhcp[root@bogon ~]# cd /etc/dhcp/[root@bogon dhcp]# ls4.将dhcpd.conf.example重命名为dhcpd.conf进行覆盖[root@bogon dhcp
2025-04-30 11:08:01
531
原创 CENTOS7配置NFS共享与客户端连接
[root@bogon ~]# yum -y install nfs-utils2. [root@bogon ~]# yum -y install rpcbind3.设置开机启动nfs相关服务[root@bogon ~]# systemctl enable rpcbind[root@bogon ~]# systemctl enable nfs-server[root@bogon ~]# systemctl enable nfs-idmap[root@bogon ~]# systemctl enable nf
2025-04-27 18:06:21
389
原创 Xshell连接centos
1. [root@localhost ~]# yum list installed | grep ssh2. [root@localhost ~]# systemctl start sshd3. [root@localhost ~]# systemctl status sshd4. [root@localhost ~]# ip addr5.widows系统打开xshell进行连接6.使用root用户连接测试7.输入密码8.连接成功
2025-04-26 11:08:44
378
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人