请在所有服务端进行如下操作,服务端使用的操作系统版本为openEuler 20.03 LTS SP1。
1 | mkdir -p /home/oath |
1 2 | cd /home/oath createrepo . |
若提示缺少createrepo命令,可通过yum install createrepo进行安装。
1 | vim /etc/yum.repos.d/local.repo
|
1 2 3 4 5 6 | [local-oath] name=local-oath baseurl=file:///home/oath enabled=1 gpgcheck=0 priority=1 |
1 | vim /etc/yum.repos.d/ceph.repo |
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 | [Ceph] name=Ceph packages for $basearch baseurl=http://download.ceph.com/rpm-nautilus/el7/$basearch enabled=1 gpgcheck=1 type=rpm-md gpgkey=https://download.ceph.com/keys/release.asc priority=1 [Ceph-noarch] name=Ceph noarch packages baseurl=http://download.ceph.com/rpm-nautilus/el7/noarch enabled=1 gpgcheck=1 type=rpm-md gpgkey=https://download.ceph.com/keys/release.asc priority=1 [ceph-source] name=Ceph source packages baseurl=http://download.ceph.com/rpm-nautilus/el7/SRPMS enabled=1 gpgcheck=1 type=rpm-md gpgkey=https://download.ceph.com/keys/release.asc priority=1 |
1 | yum clean all && yum makecache |
1 2 | cd /home tar -zxvf OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz -C /usr/local/ |
1 | vim /etc/profile
|
1 2 | export JAVA_HOME=/usr/local/jdk8u282-b08 export PATH=${JAVA_HOME}/bin:$PATH |
1 | source /etc/profile |
1 | java -version
|
回显打印所安装的版本号即为安装成功。
OpenSSL 1.1.1n存在以下高危漏洞,建议根据官方提示进行修复。
1 | yum install net-tools expect haveged dos2unix -y |
1 2 3 | cd /usr/local wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1n.tar.gz --no-check-certificate tar -zxvf openssl-1.1.1n.tar.gz |
1 2 3 | cd openssl-1.1.1n ./config make && make install |
若系统原生未安装OpenSSL,则请跳过本步骤。
1 2 | mv /usr/bin/openssl /usr/bin/openssl.bak mv /usr/include/openssl /usr/include/openssl.bak |
1 2 3 4 | ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl ln -s /usr/local/ssl/include/openssl /usr/include/openssl echo “/usr/local/ssl/lib” >> /etc/ld.so.conf ldconfig -v |