以南大通用为例,讲一讲如何完成与龙蜥操作系统的兼容验证

简介: 本文介绍南大通用 GBase 8a 兼容性验证,后续龙蜥社区会提供线上认证流程,更加高效透明,敬请期待。

image.png

龙蜥社区坚持开放合作、持续打造软硬件生态认证体系。您可以在龙蜥操作系统(Anolis OS)上安心使用已完成验证的应用。近期龙蜥社区与南大通用 GBase 完成产品兼容互认证,验证结果显示产品功能正常。本文以此为例,介绍如何快速完成验证。


以下是南大通用 Gbase 8a 兼容性验证的具体步骤。

准备工作

1、版本信息

  • Anolis 7.7 ANCK 64 位
  • GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64(注意:注意:该二进制版本是从南大通用官网下载的基于 Redhat 7.3 编译的版本,我们Anolis OS 7.7上运行该版本来验证基本的功能兼容性)

2、支持的架构

  • x86_64

3、资源准备

  • 8 核 32G OS
  • GBase 8a数据库安装包(GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64.tar.bz2,可以在南大通用数据库官网申请试用(链接见文末)

第一步:安装

1、创建用户 GBase, 后续操作都在 GBase 用户下面进行。

useradd -m gbase
su - gbase

2、假设安装包已经放到了 /home/gbase 目录下面,解压数据到 /home/gbase/install 目录下面。

 mkdir ~/install
tar -xjvf GBase8a-NoLicense-Free-8.6.2_build43-R7-redhat7.3-x86_64.tar.bz2 -C ~/install/

3、执行命令安装。

cd install/GBaseInstall/
./Install_lin.shd
# 得到如下提示,输入 Yes 接受 License 以继续安装
*********************************************************************************
Thank you for choosing GBase product!
Please read carefully the following licencing agreement before installing any product:
Disclaimer of Product Trial License:
1. Any user who tries out (including self-downloaded trial or trial version provided by General Data Technology Co., Ltd) General Data Technology Co., Ltd Software Products should read this statement carefully. Users may choose not to try Nanda General Software Products. The user's tries out General Data Technology Co., Ltd Software Products will be deemed to be an endorsement of the full content of this statement.
2. Universal software products of General Data Technology Co., Ltd have complete autonomous knowledge rights and do not infringe on the relevant rights and interests of any other unit or individual. Universal software products of General Data Technology Co., Ltd are protected by law. Any transfer, reproduction, dissemination or use in unauthorized projects are strictly prohibited without the written permission of Universal of Nanda. Otherwise, the infringer will bear full responsibility.
3. Except for the terms of service specified by General Data Technology Co., Ltd, General Data Technology Co., Ltd is not liable or liable for any accident, negligence, contract destruction, defamation, copyright or intellectual property infringement caused by the trial use of General Data Technology Co., Ltd software products and any losses (including virus infection due to downloading).
4. The relevant information of General Data Technology Co., Ltd Software Products is the original information released. If there are any changes, no further notice will be given. Software may run differently from the final version, and features and functions in pre-release software may not appear in the final version. The risk of trying out the software should be borne by you.
5. Users assume their own risks for the trial of General Data Technology Co., Ltd Software Products. General Data Technology Co., Ltd does not guarantee any form of guarantee, does not guarantee that the trial products meet the user's requirements, does not guarantee that the trial service is uninterrupted, and does not guarantee the safety of the trial products. Due to any technical reasons such as network status, communication lines and so on, users can not normally try out General Data Technology Co., Ltd Products, or the impact or loss on third parties in the process of trial, General Data Technology Co., Ltd does not bear any legal liability.
6. General Data Technology Co., Ltd respects and protects the personal privacy rights of all users who try out General Data Technology Co., Ltd Products. Without the personal permission of users or mandatory provisions of relevant laws, General Data Technology Co., Ltd will not voluntarily disclose other third parties.
7. Any unit or individual who considers that General Data Technology Co., Ltd Software products may be suspected of infringing on its legitimate rights and interests should promptly give written feedback to General Data Technology Co., Ltd or its service website, and provide identity certificates, ownership certificates and detailed tort proof. After receiving the verification of the above-mentioned legal documents, General Data Technology Co., Ltd l will make corresponding treatment as soon as possible.
8. General Data Technology Co., Ltd Corporation has the final right to interpret General Data Technology Co., Ltd Products and this statement.
*********************************************************************************
Do you accept the above licence agreement (Yes/No, default=No) ?
Yes
*********************************************************************************
                     Welcome to install GBase products
*********************************************************************************
Please input the GBase software installation directory (Default:/home/gbase/GBase):
Installing all software packages ...
Software packages installation done.
*********************************************************************************
                  Welcome to create GBase database instance
*********************************************************************************
Please input the new database instance name (default: gbase8a):
Please input the port number for the new database instance (default:5258):
GBase is creating the New 'gbase8a' instance ...
hostkey: 2bc385b******
The host key file is genarate at GBASE_BASE/config/gbase_host.cnf.
Congratulations.  Your GBase installation is successful.
Please execute $source ~/.bashrc manually on the first run.
Please refer to the product's manuals and readme.txt to start using GBase product.

一路点击回车使用默认配置,GBase 软件将被安装到 /home/gbase 目录,并将创建一个 GBase 8a 的数据库实例,实例默认服务端口 5258,执行 source 加载环境变量。

source ~/.bashrc

4、启动数据库服务。

gbase.server start
# 可以看到如下输出
# Starting GBase. SUCCESS!

第二部:测试

1、通过如下命令登录数据库。

gbase -uroot

如果安装没有问题,我们可以顺利登录到数据库。


GBase client Free Edition 8.6.2.43-R7-free.110605. Copyright (c) 2004-2021, GBase.  All Rights Reserved.
gbase>

2、展示数据库。


gbase> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| performance_schema |
| gbase              |
| gclusterdb         |
| gctmpdb            |
+--------------------+
5 rows in set (Elapsed: 00:00:00.00)
gbase>

3、创建测试 db。

gbase> create database test;
Query OK, 1 row affected (Elapsed: 00:00:00.00)
gbase> use test;
Query OK, 0 rows affected (Elapsed: 00:00:00.00)
gbase>

4、创建表。

gbase> create table hola(bonj text);
Query OK, 0 rows affected (Elapsed: 00:00:00.01)
gbase>

5、插入数据。

gbase> insert into test.hola(bonj) values('Mundo');
Query OK, 1 row affected (Elapsed: 00:00:00.01)
gbase> insert into test.hola(bonj) values('Lundo');
Query OK, 1 row affected (Elapsed: 00:00:00.01)
gbase> insert into test.hola(bonj) values('Nundo');
Query OK, 1 row affected (Elapsed: 00:00:00.00)
gbase> select * from test.hola;
+-------+
| bonj  |
+-------+
| Mundo |
| Lundo |
| Nundo |
+-------+
3 rows in set (Elapsed: 00:00:00.00)
gbase>

6、更新数据。

gbase> select * from test.hola;
+-------+
| bonj  |
+-------+
| Mundo |
| Lundo |
| Nundo |
+-------+
3 rows in set (Elapsed: 00:00:00.00)
gbase> update test.hola set bonj='Xundo' where bonj='Mundo';
Query OK, 1 row affected (Elapsed: 00:00:00.01)
Rows matched: 1  Changed: 1  Warnings: 0
gbase> select * from test.hola;
+-------+
| bonj  |
+-------+
| Xundo |
| Lundo |
| Nundo |
+-------+
3 rows in set (Elapsed: 00:00:00.00)
gbase>

7、查询数据。

gbase> select * from test.hola;
+-------+
| bonj  |
+-------+
| Xundo |
| Lundo |
| Nundo |
+-------+
3 rows in set (Elapsed: 00:00:00.00)
gbase>

8、删除数据。

gbase> delete from test.hola where bonj='Xundo';
Query OK, 1 row affected (Elapsed: 00:00:00.00)
gbase> select * from test.hola;
+-------+
| bonj  |
+-------+
| Lundo |
| Nundo |
+-------+
2 rows in set (Elapsed: 00:00:00.00)
gbase>

9、退出 sql。

gbase> exit
Bye


以上是南大通用 GBase 8a 兼容性验证介绍,欢迎感兴趣的各位验证适配。如有验证需求,请联系:陈佳 jackie.cj@openanolis.org


后续社区会提供线上认证流程,更加高效透明,敬请期待!


南大通用官网:http://www.gbase8a.com/Topic/173

欢迎更多开发者加入软件兼容性 SIG:

https://openanolis.cn/sig/third_software_compatibility

邮件列表:os@lists.openanolis.cn

—— 完 ——

加入龙蜥社群

加入微信群:添加社区助理-龙蜥社区小龙(微信:openanolis_assis),备注【龙蜥】与你同在;加入钉钉群:扫描下方钉钉群二维码。欢迎开发者/用户加入龙蜥社区(OpenAnolis)交流,共同推进龙蜥社区的发展,一起打造一个活跃的、健康的开源操作系统生态!

公众号&小龙交流群.png

关于龙蜥社区

龙蜥社区OpenAnolis)由企事业单位、高等院校、科研单位、非营利性组织、个人等在自愿、平等、开源、协作的基础上组成的非盈利性开源社区。龙蜥社区成立于 2020 年 9 月,旨在构建一个开源、中立、开放的Linux 上游发行版社区及创新平台。

龙蜥社区成立的短期目标是开发龙蜥操作系统(Anolis OS)作为 CentOS 停服后的应对方案,构建一个兼容国际 Linux 主流厂商的社区发行版。中长期目标是探索打造一个面向未来的操作系统,建立统一的开源操作系统生态,孵化创新开源项目,繁荣开源生态。

目前,龙蜥OS 8.4已发布,支持 X86_64 、Arm64、LoongArch 架构,完善适配 Intel、飞腾、海光、兆芯、鲲鹏、龙芯等芯片,并提供全栈国密支持。

欢迎下载:

https://openanolis.cn/download

加入我们,一起打造面向未来的开源操作系统!

https://openanolis.cn

相关实践学习
CentOS 7迁移Anolis OS 7
龙蜥操作系统Anolis OS的体验。Anolis OS 7生态上和依赖管理上保持跟CentOS 7.x兼容,一键式迁移脚本centos2anolis.py。本文为您介绍如何通过AOMS迁移工具实现CentOS 7.x到Anolis OS 7的迁移。
相关文章
|
7天前
|
存储 人工智能 运维
|
7天前
|
人工智能 测试技术 Anolis
英特尔携手龙蜥,共筑未来操作系统
英特尔与龙蜥社区的合作成果、未来计划。
|
7天前
|
人工智能 Anolis 开发者
|
2月前
|
人工智能 云计算 Anolis
装机量破800万台!开源操作系统龙蜥全新发布官方正式版
第二届龙蜥操作系统大会在京举办。龙蜥社区作为国内领先的开源操作系统根社区,推出的Anolis OS及衍生版装机量已突破800万套,并在会上发布Anolis OS 23 官方正式版,全面兼容国内外主流CPU、GPU架构。并推出三大开源社区计划,推动开源操作系统实现商业化的良性循环发展。
110 4
|
2月前
|
人工智能 运维 安全
专访浪潮信息:AI 原生时代,浪潮信息引领服务器操作系统创新 全面贡献龙蜥社区
分享了关于 AI 原生化趋势下服务器操作系统进化的思考,以及浪潮信息在龙蜥社区开源贡献的思路、成果与未来技术发展规划。
专访浪潮信息:AI 原生时代,浪潮信息引领服务器操作系统创新 全面贡献龙蜥社区
|
3月前
|
人工智能 Anolis