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

验证

相关推荐
学以智用29 分钟前
Linux 终端(Terminal)
linux
布莱克6052 小时前
Swift 下标(Subscript)详解:从语法到实战
服务器·开发语言·ios·ssh·swift·下标
weiwei228443 小时前
Nuclei开发环境搭建及入门
linux·嵌入式·risc-v
星恒随风3 小时前
从0实现C++ AI大模型接入SDK(三):环境搭建与ChatSDK快速上手——实现我们的第一个AI聊天程序
linux·开发语言·c++·人工智能·笔记
Tronlong创龙3 小时前
创龙科技 TL3572(RK3572)评估板 Linux 系统固化手册
linux·嵌入式开发·硬件开发·工业控制
Decay__4 小时前
PostgreSQL 用户权限与安全 —— 角色体系、GRANT 授权、pg_hba.conf 认证、行级安全与审计
运维·数据库·sql·postgresql
fengkai45454 小时前
Python运维实战
运维·开发语言·python·ssh·sftp·paramiko
那明眸似水5 小时前
LVS高可用负载均衡集群部署实训
运维·负载均衡·lvs
MSTcheng.5 小时前
【LinuxIO篇】Linux学习第二十三弹——fopen和open有什么区别?从 FILE* 到 fd,讲透 Linux 文件 IO
linux·运维·学习·io·系统调用·fd
charliejohn5 小时前
计算机考研 408 网络 DNS 概念
运维·服务器·网络