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 #重启

验证

相关推荐
晊晌_h9 小时前
嵌入式从0到精通——Linux C|TCP 并发服务器实现方案详解
服务器·开发语言·tcp/ip
姚不倒10 小时前
etcd 学习系列(七):排障指南 —— 常见问题与解决方案
运维·etcd
广州灵眸科技有限公司10 小时前
从手动三步到上电即连:4G模组systemd开机自连方案
linux·运维·服务器·开发语言·网络·人工智能·php
深念Y10 小时前
【保姆级教程】Proxmox VE (PVE) 安装 FreeBSD 完整指南
服务器·unix·系统·pve·freebsd·虚拟化平台
Lear10 小时前
Docker 私有仓库搭建与使用
运维·自动化运维
姚不倒11 小时前
etcd 学习系列(一):从业务需求出发,理解 etcd 是什么
运维·数据库·etcd
子非鱼a11 小时前
【WEB】[SWPU2019]Web1
java·服务器·前端
susplus11 小时前
【linux应用软件编程】数据库sqlite3
linux·数据库·sqlite
GeW11 小时前
RHCE的评分潜规则:这样做实验,每题多拿20%分数
linux
运维全栈笔记11 小时前
Windows 安装 WSL2 并运行 Ubuntu 24.04 指南
linux·网络·windows·ubuntu