From 18ec05989d73ebe5d33d325d9380a9e8b97ca1fd Mon Sep 17 00:00:00 2001 From: liujiangbin11 Date: Wed, 20 Nov 2024 14:45:28 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4=E7=9A=84=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E5=92=8C=E6=96=B0=E5=A2=9E=E9=9D=99=E9=BB=98=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E7=9A=84=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/docs/x2openEuler/InstallationGuide.md | 46 +++++++++++++------ 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/docs/zh/docs/x2openEuler/InstallationGuide.md b/docs/zh/docs/x2openEuler/InstallationGuide.md index 6321f78ef..1de2e9d80 100644 --- a/docs/zh/docs/x2openEuler/InstallationGuide.md +++ b/docs/zh/docs/x2openEuler/InstallationGuide.md @@ -183,7 +183,9 @@ 1. 配置数据库。 ``` - Start MariaDB customize configure + Start the MariaDB custom configuration for the use of the x2openEuler tool. + Has MariaDB been installed on the server and can be used properly? [Y/n] (default: n) + Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service. MariaDB is active. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB @@ -242,6 +244,8 @@ installation should now be secure. Thanks for using MariaDB! + + success ``` 2. 配置x2openEuler服务。 @@ -256,27 +260,23 @@ Enter the password of the root user of the MariaDB again: Set the password of the x2openEuler user for MariaDB: If the selected database already exists, it will be overwritten. - Use default x2openEulerDb database? [Y/n]y + Use default x2openEulerDb database? [Y/n] (default: Y) MariaDB is configured successfully. - - If authentication is enabled, the SSH connection fails after the fingerprint of the machine changes. + If authentication is enabled, + the SSH connection fails after the fingerprint of the machine changes. Please confirm whether public key authentication is not required for SSH connection(y/n default: n): - Use default x2openEuler database? [Y/n]y - MariaDB is configured successfully. - If authentication is enabled, the SSH connection fails after the fingerprint of the machine changes. - Please confirm whether public key authentication is not required for SSH connection(y/n default: n):y Start Nginx service and Gunicorn service Ip address list: sequence_number ip_address device [1] x.x.x.x enp1s0 - Enter the sequence number of listed ip as web server ip(default: 1): 1 Set the web server IP address x.x.x.x - Please enter HTTPS port(default: 18082): - The HTTPS port 18082 is valid. Set the HTTPS port to 18082 (y/n default: y): Set the HTTPS port 18082 - Please enter gunicorn port(default: 18080): - The GUNICORN port 18080 is valid. Set the GUNICORN port to 18080 (y/n default: y): Set the GUNICORN port 18080 + To ensure successful running of the tool, enable the web service port and reload the configuration as follows: + 1.Enable the web service port: firewall-cmd --add-port=18082/tcp --permanent + 2.Reload the configuration: firewall-cmd --reload + 3.Check whether the port is enabled: firewall-cmd --query-port=18082/tcp + Port 18082 is enabled successfully. The Nginx and Gunicorn ports are set up successfully. Installing the django dependent environment. The django dependency environment is installed successfully. @@ -307,8 +307,28 @@ Encrypting phase successfully. It may take a few minutes to generate the certificate, please wait... Certificate generated successfully. You can import the root certificate to the browser to mask security alarms when you access the tool. The root certificate is stored in /usr/local/x2openEuler/portal/thirdapp/nginx-install/webui/ca.crt. + Desktop icon created successfully. Web console is now running, go to: https://x.x.x.x:18082/x2openEuler/#/login ``` + + 工具也支持一键式地启动服务,采用默认配置。在执行静默安装前,需要先修改配置文件 `/usr/local/x2openEuler/portal/service/silent_installation.conf`, 配置文件的内容如下: + + ``` + root_password = + x2openEuler_password = + ``` + + `root_password` 和 `x2openEuler_password` 分别是数据库用户 root 和 x2openEuler 的密码。 + + 然后执行如下命令启动服务: + + ``` + cd /usr/local/x2openEuler/portal/service + bash service_init.sh true + ``` + + >![](public_sys-resources/icon-note.gif) **说明:** + > 如果在已经安装过 x2openEuler-core 的环境上重新安装时,需要注意 `root_password` 和 `x2openEuler_password` 应该填写之前设置过的密码。 ## 验证 ##### web模式下验证安装结果 -- Gitee