Preparing the Environment
- Reset the resources occupied by the shell startup process.
1vi /etc/profileAdd the following content:ulimit -n 524288
Run the source command to make the setting take effect.source /etc/profile
- Install the dependencies.
1yum install gtk-doc pam-devel rpmdevtools xmlsec1-devel libtool-ltdl-devel createrepo openldap-devel rdma-core-devel lz4-devel expat-devel lttng-ust-devel libbabeltrace-devel python3-Cython python2-Cython gperftools-devel bc dnf-plugins-core librabbitmq-devel leveldb leveldb-devel numactl numactl-devel rpmdevtools rpm-build libtool python-pip python3-pip librbd-devel git net-tools expect haveged dos2unix -y
- Create a temporary directory for the RPM packages.
1mkdir -p /home/rpm
- Copy the RPM packages in the /home/rpmbuild/RPMS/ directory of the compilation server to the /home/rpm directory of the client node, go to the directory, and configure the local Yum source.
1 2
cd /home/rpm createrepo .
- Configure the Repo file.
1vi /etc/yum.repos.d/local.repoAdd the following content:
1 2 3 4 5 6
[local] name=local baseurl=file:///home/rpm enabled=1 gpgcheck=0 priority=1
- Configure the local liboath source.
- Create a directory used as the Yum source.
mkdir -p /home/oath
- Copy all files in the /root/rpmbuild/RPMS/ directory of the compilation server to /home/oath/.
- Use the copied RPM package as the local Yum source.
1 2
cd /home/oath createrepo .
- Create a directory used as the Yum source.
- Configure the Repo file.
1vi /etc/yum.repos.d/local.repoAdd the following content to the file:1 2 3 4 5 6
[local-oath] name=local-oath baseurl=file:///home/oath enabled=1 gpgcheck=0 priority=1
- Install liboath.
1yum install liboath liboath-devel
- Install Java.
- Decompress OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz (ARM) or OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz (x86) to the /usr/local directory.
In the ARM environment:
cd /home tar -zxvf OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz -C /usr/local/
In the x86 environment:
cd /home tar -zxvf OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz -C /usr/local/
- Configure Java environment variables.
- Modify the environment variables.
1vi /etc/profileAdd the following content to the end of the file:1 2
export JAVA_HOME=/usr/local/jdk8u282-b08 export PATH=${JAVA_HOME}/bin:$PATH
- Make the environment variables take effect.
1source /etc/profile
- Check whether the installation is successful.
1java -version
- Modify the environment variables.
- Decompress OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz (ARM) or OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz (x86) to the /usr/local directory.
Parent topic: Client