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

验证

相关推荐
慧一居士7 小时前
Linux如何设置固定的静态ip
运维
国服第二切图仔8 小时前
13其他工具 - Skill/LSP/Sleep等
linux·运维·里氏替换原则
就不掉头发9 小时前
计算机的虚拟内存
linux·服务器·windows
暴力求解9 小时前
Linux ---线程控制(二)
linux·运维·服务器·操作系统
smartvxworks9 小时前
Linux 实时内核(Linux Real-Time Kernel)详解:原理、实践与优化
java·linux·服务器
梦痕长情9 小时前
等保三级三权账户
linux·运维·服务器
wuqingshun31415910 小时前
说说TCP的3次握手?为什么需要三次握手?
服务器·网络协议·tcp/ip
CHANG_THE_WORLD10 小时前
1.简单的服务端和客户端(仅作为内容补充)
linux·服务器·网络
jiecy11 小时前
为Linux系统双网卡配置静态路由
linux·运维