当前位置: 首页 > article >正文

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

验证


http://www.kler.cn/news/359897.html

相关文章:

  • QT模块--GUI和QtWidgets
  • Rust语言编程环境的安装
  • Codeforces Round 980 (Div. 2) A ~ D
  • 小程序将图片转换成base64格式
  • Mysql-事务(Transaction)详解
  • pod相关面试题总结(持续更新)
  • 【ARM】ARM架构参考手册_Part A CPU(1)
  • 【BUG】解决已安装anaconda的pycharm中jupyter服务器中出现的import jieba失败问题
  • SpringBoot启动报错java.nio.charset.MalformedInputException: Input length =1
  • SAP揭秘者-怎么查看SAP 版本及S4 HANA的版本
  • 开启RefCell debug_refcell feature查看借用冲突位置
  • PCL 基于中值距离的点云对应关系
  • linux模拟:chrony同步时间
  • 信创:推动信息技术应用创新的国产化之路
  • react18中在列表中如何使用useCallback进行渲染优化
  • 大模型的检索增强生成综述研究
  • 利用TLP185光耦合器增强电路隔离和信号完整性
  • (AtCoder Beginner Contest 375) 题解(下)
  • 408 10——42题
  • [英语单词] sk_under_memory_pressure