RHCE作业1

过程

root@peach \~# mount /dev/sr0 /mnt #挂载

root@peach \~# dnf install nginx -y #安装

root@peach nginx# systemctl stop firewalld #关闭防火墙

root@peach nginx# systemctl restart nginx #重启

root@peach nginx# setenforce 0 #关闭selinux

root@peach nginx# nmtui #写多IP

root@peach nginx# nmcli connection up ens160 #重启nmtui

root@peach nginx#vim /etc/nginx/conf.d/test_ip.conf #编辑

root@peach nginx# mkdir /test/{100,128,200} -pv #创建文件

root@peach nginx# echo this is 128 > /test/128/index.html

root@peach nginx# echo this is 100 > /test/100/index.html

root@peach nginx# echo this is 200 > /test/200/index.html #根据配置在主机创建数据文件

root@peach nginx# systemctl restart nginx #重启

验证

相关推荐
雪梨酱QAQ5 小时前
Kubeneters HA Cluster部署
运维
江华森9 小时前
Spring Cloud 微服务全栈实战:从 Eureka 到 Docker Compose 一文贯通
运维
江华森9 小时前
Matplotlib 数据绘图基础入门
运维
XIAOHEZIcode9 小时前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
江华森9 小时前
NumPy 数值计算基础入门
运维
唐青枫11 小时前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux
AlfredZhao2 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐3 天前
Linux内存扩容指南
linux
zylyehuo4 天前
Linux 彻底且安全地删除文件
linux
用户805533698034 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式