[步骤] Rocky Linux & RHEL 安装等待时间的设置

步骤一:正常进入系统安装界面

(步骤略)

步骤二:在进入安装界面前进入编辑模式

在出现以下提示内容时:

Install Red Hat Enterprise Linux 8.10

按下 “e” 键

步骤三:设置安装等待时间的参数

在以此开头的行后面:

linuxefi

将:

quiet

替换成:

rd.live.ram inst.xtimeout=600

步骤四:进入安装界面

同时按下 “ctrl” 键和 “x” 键

[内容] Linux locale 的设置 (系统语言格式的设置)

内容一:全局设置 locale

1.1 通过 localectl 命令设置 locale

# localectl set-locale LANG=en_US.UTF-8

(补充:这里以将 locale 设置为 en_US.UTF-8 为例)

1.2 通过修改 /etc/locale.conf 设置 locale

# vi /etc/locale.conf

将全部内容修改如下:

LANG=en_US.UTF-8

(补充:这里以将 locale 设置为 en_US.UTF-8 为例)

内容二:只给某个用户设置 locale

2.1 通过修改 ~/.bash_profile 设置 locale

# vi ~/.bash_profile

添加以下内容:

......
LANG=en_US.UTF-8

(补充:这里以给当前用户将 locale 设置为 en_US.UTF-8 为例)

2.2 通过修改 ~/.bashrc 设置 locale

# vi ~/.bashrc

添加以下内容:

......
LANG=en_US.UTF-8

(补充:这里以给当前用户将 locale 设置为 en_US.UTF-8 为例)

补充:查看系统支持的所有系统语言格式

# locale -a

[内容] MariaDB & MySQL 用户密码的管理

内容一:查看没有密码有效期的用户

> SELECT user, host, password_lifetime,password_last_changed from mysql.user where password_lifetime is NULL;

内容二:查看用户最后的密码修改日期

> SELECT user, host, password_lifetime,password_last_changed from mysql.user;

[步骤] Nginx SSL + 代理的设置 (添加 SSL 证书)

步骤一:生成网站所使用的私钥和公钥

# cd /etc/nginx/certs/
# openssl genrsa > cert.key
# openssl req -new -x509 -key cert.key > cert.crt

步骤二:修改 Nginx 的配置文件

# vim /etc/nginx/nginx.conf

将部分内容修改如下:

......
upstream backend {
server backendserver1.example.com:443
server backendserver2.example.com:443
}
......
server {
listen 443;
server_name www.mydomain.com:443;

ssl on;
ssl_certificate /etc/nginx/certs/cert.crt;
ssl_certificate_key /etc/nginx/certs/cert.key;

    location / {
        proxy_pass http://backend;
    }
.....
}