本章节以鲲鹏平台openEuler-20.03-LTS-SP1(以下简称openEuler)环境下安装鲲鹏DevKit全量包为例,其它硬件平台及操作系统环境下安装方法相同。
1
|
cd 自定义路径 |
1
|
tar --no-same-owner -zxvf DevKit-All-x.x.x-Linux-Kunpeng.tar.gz |
通过--no-same-owner保证解压后的文件属组为当前操作用户(root)文件属组。
1
|
cd DevKit-All-x.x.x-Linux-Kunpeng |
先以普通用户登录服务器,切换至root登录后检查/etc/ssh/sshd_config配置项PermitRootlogin,如果显示no,说明禁止了root用户登录;如果显示yes,则需要将配置项PermitRootlogin设置为no。
1
|
./install.sh |
根据回显信息选择工具安装类型。
1 2 3 4 5 6 7 8 9 |
Installing... Please wait. The system uses yum to manage packages. Select a tool access mode for your installation: [1]: User name and password [2]: OAuth 2.0-based SSO (You will be automatically logged in to the DevKit once you logged in to the system.) If you select [2], to ensure proper use of the Kunpeng DevKit, ensure that you have installed an external system that implements the OAuth2 authorization interface defined by the Kunpeng DevKit. Enter the sequence number of the tool access mode for your installation (default: 1): The access mode with the user name and password will be used for the installation. ... |
安装方式 |
参数配置 |
---|---|
User name and password(账户密码登录方式) |
标准安装方式,安装后需要输入账户、密码进行访问。 |
OAuth 2.0–based SSO(基于OAuth 2.0的SSO认证登录方式) |
SSO安装方式,安装后通过基于OAuth 2.0的SSO单点登录方式进行访问,具体请参见SSO单点登录。配置参数如下:
|
1 2 3 4 5 6 7 |
Select an installation mode: [1] : Install the DevKit framework and all plugins [2] : Install the DevKit framework and selected plugins [3] : Install the DevKit framework Enter the sequence number of the tool to be installed (default: 1): Selected install_tool: DevKit framework with plugins including porting,affinity,devtools,debugger,sys_perf,java_perf,sys_diagnosis ... |
安装模式 |
说明 |
---|---|
1 |
默认选项,安装鲲鹏DevKit框架及所有工具。 |
2 |
安装鲲鹏DevKit框架及选择的工具。 |
3 |
仅安装鲲鹏DevKit框架,不包含工具。 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Installation environment check result: SequenceNumber CheckItem CheckResult Suggestion [1] installation user ok N/A [2] sudo permission ok N/A [3] su permission ok N/A [4] pam_rootok ok N/A [5] sudoers configuration file fail '#includedir /etc/sudoers.d' is not set in the /etc/sudoers file. During the installation, you can authorize the tool to configure files. [6] devkit user ok N/A [7] service configuration file ok N/A [8] tool installation path ok N/A [9] user home directory ok N/A [10] framework dependency ok N/A [11] devkitworkers ok The tool will create 10 users (default devkitworker1-10) to execute background tasks. All the users belong to the devkit user group and have the same user permissions. [12] porting optional dependencies fail The following optional components have not been installed:java-devel [13] sys_perf optional dependencies fail The following optional components have not been installed:modulecmd lshw ibdev2netdev cma_roce_tos ofed_info mlxconfig mlnx_qos show_gids ucx_info nvidia-smi java kernel-debuginfo [14] sys_diagnosis optional dependencies fail The following optional components have not been installed:ibv kernel-debuginfo Do you want to authorize the tool to handle the items failed in the installation environment check?[y/N]: y Check environment success |
回显信息如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
Start obtaining installation parameters. Obtain the IP address, port number, and installation path required by the tool service. Enter the installation path. (The default path is /opt): Selected install_path: /opt The permission check of the installation path is successful. The space check of the installation path is successful. IP address list: sequence_number ip_address device [1] x.x.x.x enp125s0f2 [2] x.x.x.x enp129s0f2 Please enter the sequence number of the listed IP address as the web server IP (default: 1): Selected IP address of the web server: x.x.x.x Please enter the installation port (default: 8086): Selected Nginx port: 8086 Selected HTTP server port: 8002 Selected RPC cluster server port: 50051 Selected the internal port of the tool: 7996 The following parameters will be used for deployment: ++++++++++++++++++++++++++++++++++++++++++++++++ OS_TYPE : OpenEulerOS TOOL_VERSION : x.x.x INSTALL_TOOL : porting,affinity,devtools,debugger,sys_perf,java_perf,sys_diagnosis INSTALL_PATH : /opt NGINX_IP : x.x.x.x NGINX_PORT : 8086 PLUGIN_GUNICORN_PORT : 7996 GRPC_SERVER_IP : x.x.x.x GRPC_LISTEN_PORT : 50051 HTTP_LISTEN_PORT : 8002 ++++++++++++++++++++++++++++++++++++++++++++++++ DevKit Configuration Generation ... ... ... welcome to install DevKit for Java! checking the configuration and the minimal requirements before the installation: Check disk space Check install path disk space Success JAVA_HOME is /opt/DevKit/devkitplugins/java_perf/jdk-17.0.10 THOR_JAVA_HOME is /opt/DevKit/devkitplugins/java_perf/jdk-17.0.10 Selected Java_perf server port: 18080 Selected Java_perf socket server port: 19090 The pre-checking as OK. ... ... ... |
1
|
chmod 755 /usr/bin/readelf |
若选择1,用户需要先下载所需要的镜像源到本地,然后输入本地镜像源所在路径。
若选择2,用户需要手动输入可下载镜像源的网址,通过该网址在线下载镜像源。
若选择3,镜像源存在于华为云,则直接自动匹配安装镜像源。(只有当用户在鲲鹏平台上安装,且操作系统属于CentOS 7.6/8.0/8.1/8.2、openEuler 20.03、Debian 10或者EulerOS 2.0(SP8)之一,才会支持选项3,直接自动匹配安装镜像源。)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
Operations to perform: Apply all migrations: affinity_tasks, auth, commonanalysis, contenttypes, cuda_debugger, data_comparison, dependency_dictionary, dependency_filter, devtools_tasks, diagnostic_importexporttasks, diagnostic_nodemanager, diagnostic_scheduletask, diagnostic_sysconfig, diagnostic_taskmanager, diagnostic_usermanager, dynamic_search, importexporttasks, mpi_debugger, nfs_dpc_diagnostic_analysis, nodemanager, optimization_assistant, scene, scheduletask, sessions, ssh_key, storageio_diagnostic_task, sys_config, sysmig, taskmanager, tasks, usermanager Running migrations: Applying diagnostic_importexporttasks.0001_initial... OK Applying diagnostic_nodemanager.0001_initial... OK Applying diagnostic_scheduletask.0001_initial... OK Applying diagnostic_sysconfig.0001_initial... OK Applying diagnostic_taskmanager.0001_initial... OK Applying diagnostic_usermanager.0001_initial... OK Applying nfs_dpc_diagnostic_analysis.0001_initial... OK Applying storageio_diagnostic_task.0001_initial... OK Run sys_diagnosis install script Check disk space Check install path disk space Success ... ... ... Install iperf3 /home/devkit_package/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-Sys-Diagnosis-x.x.x-Linux-Kunpeng/DevKit-Sys-Diagnosis-x.x.x-Linux-Kunpeng/deploy/iperf /home/devkit_package/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-Sys-Diagnosis-x.x.x-Linux-Kunpeng/DevKit-Sys-Diagnosis-x.x.x-Linux-Kunpeng/deploy Configure iperf, please wait Make iperf3, please wait Make install iperf3, please wait Install iperf3 Success /home/devkit_package/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-Sys-Diagnosis-x.x.x-Linux-Kunpeng/DevKit-Sys-Diagnosis-x.x.x-Linux-Kunpeng/deploy Install trace_net_flow Install trace_net_flow Success Load database success Run sys_diagnosis install script success install sys_diagnosis success Encryption success Signature verification key generated successfully Generate agent package success The porting plugin is successfully installed in the /opt/DevKit/devkitplugins/porting directory. The affinity plugin is successfully installed in the /opt/DevKit/devkitplugins/affinity directory. The devtools plugin is successfully installed in the /opt/DevKit/devkitplugins/devtools directory. The debugger plugin is successfully installed in the /opt/DevKit/devkitplugins/debugger directory. The sys_perf plugin is successfully installed in the /opt/DevKit/devkitplugins/sys_perf directory. The java_perf plugin is successfully installed in the /opt/DevKit/devkitplugins/java_perf directory. The sys_diagnosis plugin is successfully installed in the /opt/DevKit/devkitplugins/sys_diagnosis directory. The Kunpeng DevKit Advisor is successfully installed in the /opt/DevKit directory. The DevKit Web console is running. Visit https://x.x.x.x:8086 If x.x.x.x:8086 has mapping IP. Please use the mapping IP. |
1
|
vi /lib/systemd/system/gunicorn_framework.service
|
1
|
vi /usr/lib/systemd/system/gunicorn_framework.service
|
1 2 |
Environment="http_proxy=ip:port" Environment="https_proxy=ip:port" |
“ip:port”是代理服务器的地址和端口号。
1
|
systemctl daemon-reload
|
1 2 |
systemctl restart gunicorn_framework.service systemctl restart gunicorn_plugin.service |
1
|
vi /etc/resolv.conf
|
1
|
nameserver ip
|
“ip”是DNS服务器的IP地址。