一、安装nginx [root@server10 ~]# dnf -y install nginx 安装nginx 二、备份nginx的配置文件 [root@server10 ~]# cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak 备份nginx的配置文件 三、启动nginx并设…
一、安装nginx [root@server10 ~]# dnf -y install nginx 安装nginx 二、备份nginx的配置文件 [root@server10 ~]# cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak 备份nginx的配置文件 三、编辑nginx的配…
一、更改计算机名ns1 [root@server10 ~]# hostnamectl set-hostname ns1 更改计算机名ns1 [root@server10 ~]# exit 退出 二、安装dns [root@ns1 ~]# dnf -y install bind bind-utils 安装dns 三、编辑dns…
一、安装pgsql数据源 [root@server10 ~]# sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm 安装pgsql数据源 二、安装最新…
一、创建SSL的阿帕奇网站 1.1 创建阿帕奇及开启阿帕奇 [root@server10 ~]# dnf -y install httpd 安装阿帕奇 [root@server10 ~]# systemctl enable httpd 设置阿帕奇开机启动 Created symlink /etc/systemd/system/mul…
一、安装阿帕奇 [root@server10 ~]# dnf -y install httpd 安装阿帕奇[root@server10 ~]# systemctl enable httpd 设置阿帕奇开机启动 Created symlink /etc/systemd/system/multi-user.target.wants/ht…
一、安装httpd 1.1安装httpd [root@Server10 ~]# [root@Server10 ~]# dnf -y install httpd 安装阿帕奇 Rocky Linux 9 - BaseOS 3.3 kB/s | 4.1 kB 00:01 Rocky Linux 9 - BaseOS 329 kB/s | …
db1 192.168.7.10 db2 192.168.7.11 db3 192.168.7.12 一、修改db1、db2、db3数据库名称 [root@db1 ~]# sestatus SELinux status: disabled [root@db1 ~]# systemctl statu…
db1: 192.168.7.10 主 db2: 192.168.7.11 从 [root@server10 ~]# vim /etc/chrony.conf 编辑时间同步配置文件 pool ntp.aliyun.com iburst 同步阿里云的时间 [roo…
创建班级数据库 MariaDB [(none)]> create database banji; 创建班级数据库 Query OK, 1 row affected (0.000 sec) MariaDB [(none)]> use banji; 使用班级数据库 Database changed MariaDB [banji]…