使用虛擬機(jī)在VirtualBox+openEuler上安裝部署openGauss數(shù)據(jù)庫(kù)
本節(jié)描述openGauss數(shù)據(jù)庫(kù)在虛擬機(jī)VirtualBox+openEuler上的安裝配置。
1、虛擬機(jī)VirtualBox下載及安裝
步驟 1 進(jìn)入官方網(wǎng)站下載頁(yè)面。
網(wǎng)址:https://www.virtualbox.org/wiki/Downloads
點(diǎn)擊” window主機(jī)” 下載windows版本的VirtualBox。
步驟 2下載完成后,雙擊執(zhí)行文件進(jìn)行安裝。
下載后,文件名為:VirtualBox-6.1.14-140239-Win.exe,雙擊此執(zhí)行文件進(jìn)行安裝,安裝過程中存放地址可以根據(jù)自己想法去設(shè)置下,其他所有選項(xiàng)都可以默認(rèn),直接按下一步就行,最后安裝成功。
具體如下:
2、openEuler-20.03-LTS鏡像文件下載
步驟 1 進(jìn)入華為開源鏡像站的下載頁(yè)面。
網(wǎng)址:https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/ISO/x86_64/,具體如下:
步驟 2 點(diǎn)擊” openEuler-20.03-LTS-x86_64-dvd.iso”,進(jìn)行相應(yīng)ISO鏡像文件下載。
下載的文件名如下:
3、VirtualBox下安裝openEuler-20.03-LTS操作系統(tǒng)
步驟 1 新建虛擬電腦。
打開VirtualBox軟件。
在VirtualBox的管理器上點(diǎn)擊”新建”,具體如下:
在此頁(yè)面,填好相應(yīng)的名稱(如:openEuler)、文件存放地址(如:d:\vmwork)、操作系統(tǒng)類型(如:Linux))、版本(如:Other Linux),然后點(diǎn)擊”下一步”。
內(nèi)存設(shè)置為2048MB(表示整個(gè)系統(tǒng)只有2G內(nèi)存),然后點(diǎn)擊”下一步”。
采用默認(rèn)設(shè)置,直接點(diǎn)擊”創(chuàng)建”。
采用默認(rèn)設(shè)置,直接點(diǎn)擊”下一步”。
采用默認(rèn)設(shè)置,直接點(diǎn)擊”下一步”。
硬盤大小改為10G(10G表示硬盤自動(dòng)擴(kuò)展后所能達(dá)到的最大極限大小,在實(shí)際使用中可以根據(jù)自己情況來做調(diào)整),然后點(diǎn)擊”創(chuàng)建”。
步驟 2 設(shè)置虛擬電腦并安裝。
在VirtualBox的管理器上點(diǎn)擊”設(shè)置”,具體如下:
在設(shè)置頁(yè)面上點(diǎn)擊”系統(tǒng)”,進(jìn)行系統(tǒng)設(shè)置,在啟動(dòng)順序中把”光驅(qū)”、”硬盤”移動(dòng)至第一、二啟動(dòng),”軟驅(qū)”去掉勾選,具體如下:
處理器中,CPU設(shè)置為2,具體如下:
點(diǎn)擊“存儲(chǔ)“設(shè)置項(xiàng),選擇光盤并在分配光驅(qū)后面點(diǎn)擊加載按鈕將前面下載的openEuler-20.03-LTS-x86_64-dvd.iso文件加載至光驅(qū)中,具體如下:
點(diǎn)擊“網(wǎng)絡(luò)“設(shè)置項(xiàng),這里用到二張網(wǎng)卡,網(wǎng)卡1連接方式下拉選擇為”僅主機(jī)(Host-Only)網(wǎng)絡(luò)“,主要用于本地電腦與虛擬電腦相連,具體如下:
網(wǎng)卡2設(shè)置,勾選“啟用網(wǎng)絡(luò)連接”,并且“連接方式選擇”下拉選擇為“網(wǎng)絡(luò)地址轉(zhuǎn)換(NAT)“,主要用于虛擬電腦與互聯(lián)網(wǎng)相連,具體如下:
最后點(diǎn)擊“OK“按鈕,設(shè)置完成,設(shè)置完成頁(yè)面如下:
點(diǎn)擊啟動(dòng)按鈕,開始進(jìn)入系統(tǒng)安裝。
確定光驅(qū)中的ISO內(nèi)容正確后,點(diǎn)擊“啟動(dòng)“。
啟動(dòng)安裝第一界面,直接按下“Enter“鍵后就會(huì)進(jìn)入自檢界面。
語(yǔ)言選擇中文----》簡(jiǎn)體中文(中國(guó)),然后點(diǎn)擊“繼續(xù)“。
在此頁(yè)面,點(diǎn)擊“安裝位置“先進(jìn)行分區(qū),具體如下:
選擇“自定義“,然后點(diǎn)擊”完成“。
下拉選擇“標(biāo)準(zhǔn)分區(qū)“,然后點(diǎn)擊”點(diǎn)擊這里自動(dòng)創(chuàng)建他們“。
點(diǎn)擊“完成“,進(jìn)入下一步設(shè)置。
點(diǎn)擊“接受更改“,完成分區(qū)設(shè)置,接下來進(jìn)行網(wǎng)絡(luò)和主機(jī)名設(shè)置。
在安裝信息摘要頁(yè)面,點(diǎn)擊“網(wǎng)絡(luò)和主機(jī)名“進(jìn)行網(wǎng)絡(luò)和主機(jī)名設(shè)置,具體如下:
分別針對(duì)二張網(wǎng)卡進(jìn)行設(shè)置,如以太網(wǎng)(enpOs3)網(wǎng)卡,先點(diǎn)擊“關(guān)閉“邊上的按鈕把網(wǎng)卡打開。
接著設(shè)置主機(jī)名(如:db1),并點(diǎn)擊“應(yīng)用(A)”,然后點(diǎn)擊“配置“。
說明:設(shè)置主機(jī)名時(shí)一定要注意,如果在同一網(wǎng)段內(nèi)有多位學(xué)員按此文檔來安裝,請(qǐng)盡量把主機(jī)名設(shè)成不一樣。
在配置頁(yè)中,選擇“常規(guī)“,然后勾選”可用時(shí)自動(dòng)鏈接到這個(gè)網(wǎng)絡(luò)“,接著點(diǎn)擊”保存“。
參數(shù)第一張網(wǎng)卡的設(shè)置步驟對(duì)第二張網(wǎng)卡進(jìn)行設(shè)置,先打開網(wǎng)卡,接著進(jìn)行配置,具體如下:
點(diǎn)擊“保存“。
點(diǎn)擊“完成“,結(jié)束網(wǎng)絡(luò)和主機(jī)名的設(shè)置。
在安裝信息摘要頁(yè)面,點(diǎn)擊“軟件選擇 “進(jìn)行軟件安裝設(shè)置,具體如下:
在此頁(yè)面選擇“虛擬化主機(jī)“,并在右邊勾選”Linux的遠(yuǎn)程管理“、”開發(fā)工具“、”安全性工具“、”系統(tǒng)管理工具“。然后點(diǎn)擊完成。
設(shè)置結(jié)束,點(diǎn)擊“開始安裝“,具體如下:
點(diǎn)擊“ROOT密碼“,給ROOT用戶設(shè)置密碼(如:openGauss@123)。
點(diǎn)擊“創(chuàng)建用戶“,在此新創(chuàng)建一個(gè)用戶(如:用戶test,密碼openGauss@123),具體如下:
系統(tǒng)安裝中,等待數(shù)分鐘后會(huì)出現(xiàn)如下界面:
出現(xiàn)此界面表示,系統(tǒng)安裝完成,然后點(diǎn)擊“重啟“,但此時(shí)要調(diào)整系統(tǒng)從硬盤啟動(dòng)。
先關(guān)閉VM運(yùn)行窗口,如下:
然后設(shè)置從硬盤啟動(dòng),具體如下:
重啟后,要求輸入用戶名及密碼,這里用root用戶登錄,密碼比如:openGauss@123,具體如下:
步驟 3 確認(rèn)網(wǎng)絡(luò)
在Linux操作系統(tǒng)上,通過ifconfig來查看二張網(wǎng)卡是否都正常啟動(dòng),具體如下:
[root@db1 ~]# ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.56.123 netmask 255.255.255.0 broadcast 192.168.56.255 inet6 fe80::ac2f:dc4f:edfe:1d57 prefixlen 64 scopeid 0x20<link> ether 08:00:27:0f:78:e3 txqueuelen 1000 (Ethernet) RX packets 519 bytes 48509 (47.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 178 bytes 52937 (51.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.3.15 netmask 255.255.255.0 broadcast 10.0.3.255 inet6 fe80::bedc:2040:4b9:23ed prefixlen 64 scopeid 0x20<link> ether 08:00:27:45:8d:f0 txqueuelen 1000 (Ethernet) RX packets 72 bytes 10702 (10.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 124 bytes 11664 (11.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 …………………………….. virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:05:11:90 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
通過ping baidu.com確認(rèn)是否能上網(wǎng),具體如下:
[root@db1 ~]# ping baidu.com PING baidu.com (39.156.69.79) 56(84) bytes of data. 64 bytes from 39.156.69.79 (39.156.69.79): icmp_seq=1 ttl=47 time=48.1 ms 64 bytes from 39.156.69.79 (39.156.69.79): icmp_seq=2 ttl=47 time=46.5 ms 64 bytes from 39.156.69.79 (39.156.69.79): icmp_seq=3 ttl=47 time=49.2 ms
使用 ctrl+c組合鍵可以結(jié)束輸出。
4、操作系統(tǒng)環(huán)境準(zhǔn)備
為了操作方便,可以使用SSH工具(比如:PuTTY等)從本地電腦通過配置enp0s3網(wǎng)卡的IP地址(如:192.168.56.123)來連接虛擬機(jī),并使用ROOT用戶來登錄。
步驟 1 關(guān)閉防火墻
執(zhí)行以下二個(gè)命令將防火墻關(guān)閉,
systemctl stop firewalld.service
systemctl disable firewalld.service,具體如下:
[root@db1 ~]# cat >>/etc/profile<<EOF export LANG=en_US.UTF‐8 EOF [root@db1 ~]# [root@db1 ~]# cat >>/etc/profile<<EOF export packagePath=/opt/software/openGauss EOF [root@db1 ~]# source /etc/profile [root@db1 ~]# cat >>/etc/profile<<EOF export LD_LIBRARY_PATH=$packagePath/script/gspylib/clib:$LD_LIBRARY_PATH EOF [root@db1 ~]# [root@db1 ~]# source /etc/profile
步驟 2設(shè)置字符集及環(huán)境變量。
驗(yàn)證變量是否生效。
[root@db1 ~]# echo $LD_LIBRARY_PATH
結(jié)果為:
/opt/software/openGauss/script/gspylib/clib:
步驟 3關(guān)閉swap交換內(nèi)存。
[root@db1 ~]# swapoff -a
步驟 4調(diào)整系統(tǒng)參數(shù)值。
執(zhí)行如下命令打開performance.sh文件,用#注釋sysctl -w vm.min_free_kbytes=112640 &> /dev/null,鍵入“ESC”鍵進(jìn)入指令模式,執(zhí)行:wq保存并退出修改。
使用vim打開文件“/etc/profile.d/performance.sh”
[root@db1 ~]# vi /etc/profile.d/performance.sh
輸入”i”,進(jìn)入INSERT模式。用#注釋sysctl -w vm.min_free_kbytes=112640 &> /dev/null。
CPUNO=`cat /proc/cpuinfo|grep processor|wc -l` export GOMP_CPU_AFFINITY=0-$[CPUNO - 1] #sysctl -w vm.min_free_kbytes=112640 &> /dev/null sysctl -w vm.dirty_ratio=60 &> /dev/null sysctl -w kernel.sched_autogroup_enabled=0 &> /dev/null
點(diǎn)擊“ESC”退出INSERT模式。輸入“:wq”后回車,保存退出。
步驟 5準(zhǔn)備yum環(huán)境。
備份原有的yum配置文件。
[root@db1 ~]# mv /etc/yum.repos.d/openEuler_x86_64.repo /etc/yum.repos.d/openEuler_x86_64.repo.bak [root@db1 ~]#
下載可用源的repo文件:
curl -o /etc/yum.repos.d/openEuler_x86_64.repo https://mirrors.huaweicloud.com/repository/conf/openeuler_x86_64.repo
[root@db1 ~]# curl -o /etc/yum.repos.d/openEuler_x86_64.repo https://mirrors.huaweicloud.com/repository/conf/openeuler_x86_64.repo ? % Total ? ?% Received % Xferd ?Average Speed ? Time ? ?Time ? ? Time ?Current ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Dload ?Upload ? Total ? Spent ? ?Left ?Speed 100 ? 886 ? ?0 ? 886 ? ?0 ? ? 0 ? 3661 ? ? ?0 --:--:-- --:--:-- --:--:-- ?3676
查看repo文件內(nèi)容是否正確。
[root@db1 ~]# cat /etc/yum.repos.d/openEuler_x86_64.repo [openEuler-source] name=openEuler-source baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/source/ enabled=1 gpgcheck=1 gpgkey=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/source/RPM-GPG-KEY-openEuler [openEuler-os] name=openEuler-os baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/OS/x86_64/ enabled=1 gpgcheck=1 gpgkey=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/OS/x86_64/RPM-GPG-KEY-openEuler [openEuler-everything] name=openEuler-everything baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/everything/x86_64/ enabled=1 gpgcheck=1 gpgkey=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/everything/x86_64/RPM-GPG-KEY-openEuler [openEuler-EPOL] name=openEuler-epol baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/EPOL/x86_64/ enabled=1 gpgcheck=0 [root@db1 ~]#
步驟 6yum安裝相關(guān)包。
執(zhí)行以下命令,安裝所需的包
yum install libaio* -y
yum install libnsl* -y
如下:
[root@db1 ~]# yum install libaio* -y Last metadata expiration check: 0:00:44 ago on Thu 15 Oct 2020 10:38:26 AM CST. Package libaio-0.3.111-5.oe1.x86_64 is already installed. Dependencies resolved. …………………. [root@db1 ~]# yum install libnsl* -y Last metadata expiration check: 0:00:24 ago on Thu 07 Jan 2021 10:17:38 AM CST. Package libnsl2-1.2.0-4.oe1.x86_64 is already installed. Dependencies resolved. ………………….
步驟 7 設(shè)置默認(rèn)Python版本為3.x。
[root@db1 ~]# cd /usr/bin [root@db1 bin]# mv python python.bak [root@db1 bin]# ln -s python3 /usr/bin/python [root@db1 bin]# python -V Python 3.6.8
步驟 8 創(chuàng)建存放數(shù)據(jù)庫(kù)安裝目錄。
[root@db1 ~]# mkdir -p /opt/software/openGauss [root@db1 ~]# cd /opt/software/openGauss [root@db1 openGauss]#
5、安裝openGauss數(shù)據(jù)庫(kù)
步驟 1 創(chuàng)建XML配置文件,用于數(shù)據(jù)庫(kù)安裝。
[root@db1 openGauss]# vi clusterconfig.xml
將以下內(nèi)容添加進(jìn)clusterconfig.xml文件中。
<?xml version="1.0" encoding="UTF-8"?> <ROOT> <!-- openGauss整體信息 --> <CLUSTER> <PARAM name="clusterName" value="dbCluster" /> <PARAM name="nodeNames" value="db1" /> <PARAM name="backIp1s" value="10.0.3.15"/> <PARAM name="gaussdbAppPath" value="/opt/gaussdb/app" /> <PARAM name="gaussdbLogPath" value="/var/log/gaussdb" /> <PARAM name="gaussdbToolPath" value="/opt/huawei/wisequery" /> <PARAM name="corePath" value="/opt/opengauss/corefile"/> <PARAM name="clusterType" value="single-inst"/> </CLUSTER> <!-- 每臺(tái)服務(wù)器上的節(jié)點(diǎn)部署信息 --> <DEVICELIST> <!-- node1上的節(jié)點(diǎn)部署信息 --> <DEVICE sn="1000001"> <PARAM name="name" value="db1"/> <PARAM name="azName" value="AZ1"/> <PARAM name="azPriority" value="1"/> <!-- 如果服務(wù)器只有一個(gè)網(wǎng)卡可用,將backIP1和sshIP1配置成同一個(gè)IP --> <PARAM name="backIp1" value="10.0.3.15"/> <PARAM name="sshIp1" value="10.0.3.15"/> <!--dbnode--> <PARAM name="dataNum" value="1"/> <PARAM name="dataPortBase" value="26000"/> <PARAM name="dataNode1" value="/gaussdb/data/db1"/> </DEVICE> </DEVICELIST> </ROOT>
說明:其中標(biāo)紅的內(nèi)容,需要根據(jù)自己實(shí)際的IP和主機(jī)名進(jìn)行修改,如果其中的中文出現(xiàn)亂碼時(shí)可以刪除這些行。
步驟 2 使用wget下載數(shù)據(jù)庫(kù)安裝包到安裝包目錄
切換到安裝目錄:
[root@ecs-c9bf bin]# cd /opt/software/openGauss
使用wget下載安裝包:
[root@ecs-c9bf openGauss]# wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/1.1.0/x86_openEuler/openGauss-1.1.0-openEuler-64bit-all.tar.gz
注:https://opengauss.obs.cn-south-1.myhuaweicloud.com/1.1.0/x86_openEuler/openGauss-1.1.0-openEuler-64bit-all.tar.gz是數(shù)據(jù)庫(kù)安裝包下載網(wǎng)址,輸入時(shí)不需要進(jìn)行換行。
下載成功顯示如下:
……
2020-09-14 13:57:23 (9.33 MB/s) - ‘openGauss-1.1.0-openEuler-64bit-all.tar.gz’ saved [58468915/58468915]
步驟 3在安裝包所在的目錄下,解壓安裝包。
[root@ecs-c9bf openGauss]# cd /opt/software/openGauss
解壓縮安裝包:
先解壓openGauss-1.1.0-openEuler-64bit-all.tar.gz包。
[root@ecs-c9bf openGauss]# tar -zxvf openGauss-1.1.0-openEuler-64bit-all.tar.gz
再先解壓openGauss-1.1.0-openEuler-64bit-om.tar.gz包。
[root@ecs-c9bf openGauss]# tar -zxvf openGauss-1.1.0-openEuler-64bit-om.tar.gz
解壓后如下,用ls命令查看如下:
[root@ecs-c9bf openGauss]# ls clusterconfig.xml openGauss-Package-bak_392c0438.tar.gz lib script openGauss-1.1.0-openEuler-64bit-all.tar.gz simpleInstall openGauss-1.1.0-openEuler-64bit-om.sha256 upgrade_sql.sha256 openGauss-1.1.0-openEuler-64bit-om.tar.gz upgrade_sql.tar.gz openGauss-1.1.0-openEuler-64bit.sha256 version.cfg openGauss-1.1.0-openEuler-64bit.tar.bz2
安裝包解壓后,會(huì)在/opt/software/openGauss路徑下自動(dòng)生成script子目錄,并且在script目錄下生成gs_preinstall等各種OM工具腳本。
更改權(quán)限。
[root@db1 openGauss]# chmod 755 -R /opt/software [root@db1 openGauss]#
步驟 4執(zhí)行初始化腳本。
[root@db1 openGauss]# cd /opt/software/openGauss/script [root@db1 script]# python gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.xml Parsing the configuration file. Successfully parsed the configuration file. Installing the tools on the local node. Are you sure you want to create trust for root (yes/no)? yes Please enter password for root. Password: Creating SSH trust for the root permission user. Checking network information. …………………………………….. Are you sure you want to create the user[omm] and create trust for it (yes/no)? yes Please enter password for cluster user. Password: Please enter password for cluster user again. Password: Successfully created [omm] user on all nodes. Preparing SSH service. Successfully prepared SSH service. …………………………………….. Successfully set finish flag. Preinstallation succeeded.
期間需要輸入操作系統(tǒng)root用戶的密碼(如密碼:openGauss@123)和創(chuàng)建操作系統(tǒng)omm用戶及設(shè)置密碼(如密碼:openGauss@123)。
當(dāng)返回Preinstallation succeeded內(nèi)容時(shí),表明初始化完成。
步驟 5 初始化數(shù)據(jù)庫(kù)
用init 6 重啟下虛擬機(jī)(主要是為了釋放一些內(nèi)存資源)。
[root@db1 script]# init 6 Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(ONE) at 10:51:59. Type `help' to learn how to use Xshell prompt.
過段時(shí)間虛擬機(jī)重啟好后,再次使用SSH工具(比如:PuTTY等)從本地電腦通過配置enp0s3網(wǎng)卡的IP地址(如:192.168.56.123)來連接虛擬機(jī),并使用ROOT用戶來登錄,然后接著以下操作。
先更新下權(quán)限。
[root@db1 script]# chmod 755 -R /opt/software [root@db1 openGauss]#
然后使用omm用戶進(jìn)行數(shù)據(jù)庫(kù)初始化。
注意:根據(jù)用戶實(shí)際內(nèi)存大小設(shè)置對(duì)應(yīng)的共享內(nèi)存的大小,如果對(duì)該參數(shù)進(jìn)行了設(shè)置,會(huì)在數(shù)據(jù)庫(kù)啟動(dòng)時(shí)候報(bào)錯(cuò),本實(shí)驗(yàn)虛擬機(jī)總內(nèi)存大小是2G。
gs_install -X /opt/software/openGauss/clusterconfig.xml --gsinit-parameter="–encoding=UTF8" --dn-guc=“max_process_memory=2GB” --dn-guc=“shared_buffers=128MB” --dn-guc=“bulk_write_ring_size=128MB” --dn-guc=“cstore_buffers=16MB”
具體如下:
[root@db1 openGauss]# su - omm Last login: Thu Sep 10 15:26:21 CST 2020 on pts/0 [omm@db1 ~]$ cd /opt/software/openGauss/script [omm@db1 script]$ gs_install -X /opt/software/openGauss/clusterconfig.xml --gsinit-parameter="--encoding=UTF8" --dn-guc="max_process_memory=2GB" --dn-guc="shared_buffers=128MB" --dn-guc="bulk_write_ring_size=128MB" --dn-guc="cstore_buffers=16MB" Parsing the configuration file. Check preinstall on every node. Successfully checked preinstall on every node. Creating the backup directory. Successfully created the backup directory. begin deploy.. Installing the cluster. begin prepare Install Cluster.. Checking the installation environment on all nodes. begin install Cluster.. Installing applications on all nodes. Successfully installed APP. begin init Instance.. encrypt cipher and rand files for database. Please enter password for database: Please repeat for database: begin to create CA cert files The sslcert will be generated in /opt/gaussdb/app/share/sslcert/om Cluster installation is completed. Configuring. …………………………. Successfully started cluster. Successfully installed application. end deploy..
注意:輸入omm用戶密碼時(shí),不要輸入錯(cuò)誤(如密碼:openGauss@123)。
步驟 6清理軟件安裝包。
[omm@db1 openGauss]$ exit logout [root@db1 /]# cd /root [root@db1 script]# cd /opt/software/openGauss/ [root@db1 openGauss]# ll total 288M -rw-------. 1 omm dbgrp 1.4K Jan 7 10:32 clusterconfig.xml drwx------. 15 root root 4.0K Jan 7 10:31 lib -r--------. 1 root root 95M Dec 31 20:59 openGauss-1.1.0-openEuler-64bit-all.tar.gz -r--------. 1 root root 65 Dec 31 20:40 openGauss-1.1.0-openEuler-64bit-om.sha256 -r--------. 1 root root 13M Dec 31 20:40 openGauss-1.1.0-openEuler-64bit-om.tar.gz -r--------. 1 root root 65 Dec 31 20:39 openGauss-1.1.0-openEuler-64bit.sha256 -r--------. 1 root root 84M Dec 31 20:39 openGauss-1.1.0-openEuler-64bit.tar.bz2 -r--------. 1 root root 96M Jan 7 10:32 openGauss-Package-bak_392c0438.tar.gz drwx------. 6 root root 4.0K Dec 31 20:40 script drwxr-xr-x. 2 root root 4.0K Dec 31 20:40 simpleInstall -r--------. 1 root root 65 Dec 31 20:39 upgrade_sql.sha256 -r--------. 1 root root 132K Dec 31 20:39 upgrade_sql.tar.gz -r--------. 1 root root 32 Dec 31 20:38 version.cfg -rwxr-xr-x. 1 root root 32 Oct 14 02:12 version.cfg [root@db1 openGauss]# rm -rf openGauss-1.1.0-openEuler-64bit-all.tar.gz [root@db1 openGauss]# rm -rf openGauss-1.1.0-openEuler-64bit-om.tar.gz
數(shù)據(jù)庫(kù)安裝結(jié)束。
到此這篇關(guān)于使用虛擬機(jī)在VirtualBox+openEuler上安裝部署openGauss數(shù)據(jù)庫(kù)的文章就介紹到這了,更多相關(guān)openGauss數(shù)據(jù)庫(kù)虛擬機(jī)安裝部署內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
VirtualBox軟件下載安裝及Linux環(huán)境安裝部署圖文教程詳解
這篇文章主要介紹了VirtualBox軟件下載安裝及Linux環(huán)境安裝部署的教程,本文通過圖文并茂的形式給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-04-04windows中VirtualBox如何調(diào)整擴(kuò)大VMDK格式的磁盤空間
這篇文章主要介紹了windows中VirtualBox調(diào)整擴(kuò)大VMDK格式的磁盤空間,需要的朋友可以參考下2017-12-12詳解VirtualBox + CentOS 虛擬機(jī)網(wǎng)卡配置
要學(xué)好Linux,還是得自己搭建虛擬機(jī). VirtualBox比較小巧簡(jiǎn)單,在配合CentOS 6.4使用時(shí),首要的問題就是網(wǎng)卡配置,有興趣的可以了解一下。2016-12-12virtualbox虛擬機(jī)網(wǎng)絡(luò)設(shè)置原理解析
這篇文章為大家詳細(xì)主要介紹了virtualbox虛擬機(jī)網(wǎng)絡(luò)設(shè)置原理,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2016-10-10VirtualBox配置虛擬網(wǎng)卡(橋接)——實(shí)現(xiàn)主機(jī)-虛擬機(jī)網(wǎng)絡(luò)互通
本篇文章主要介紹了VirtualBox配置虛擬網(wǎng)卡(橋接)——實(shí)現(xiàn)主機(jī)-虛擬機(jī)網(wǎng)絡(luò)互通,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下。2017-02-02VirtualBox實(shí)現(xiàn)虛擬機(jī)中共享本地目錄的方法
VirtualBox 是一款開源虛擬機(jī)軟件。VirtualBox 是由德國(guó) Innotek 公司開發(fā),由Sun Microsystems公司出品的軟件,使用Qt編寫,在 Sun 被 Oracle 收購(gòu)后正式更名成 Oracle VM VirtualBox這篇文章主要介紹了VirtualBox實(shí)現(xiàn)虛擬機(jī)中共享本地目錄的方法,需要的朋友可以參考下2017-11-11VirtualBox的Linux虛擬機(jī)文本模式和圖形模式的切換問題
這篇文章主要介紹了VirtualBox的Linux虛擬機(jī)文本模式和圖形模式的切換問題的相關(guān)資料,需要的朋友可以參考下2017-02-02virtualBox虛擬機(jī)安裝增強(qiáng)功能后開機(jī)超慢問題解決方案
virtualBox虛擬機(jī)安裝增強(qiáng)功能后開機(jī)超慢問題解決方案,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2023-06-06