diff --git "a/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/finish.md" "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/finish.md" new file mode 100644 index 0000000000000000000000000000000000000000..b1d0977733ae8d579092b0ab7b26d42e50de3936 --- /dev/null +++ "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/finish.md" @@ -0,0 +1,9 @@ +连接数据库,由于前面的命令没有装客户端,这里直接安装一个mysql端来访问 +```shell +yum install mysql +``` + +访问数据库 +```shell +mysql -h127.1 -uroot -P2881 +``` \ No newline at end of file diff --git "a/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/index.yaml" "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/index.yaml" new file mode 100644 index 0000000000000000000000000000000000000000..2892cc4ea27efa2db4a451a88f0522fdf00fd85f --- /dev/null +++ "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/index.yaml" @@ -0,0 +1,12 @@ +name: OceanBase安装部署 +desc: OceanBase安装部署 +image: Anolis OS 8.6 ANCK 64位 +live_time: 5min +machine: x86_64-2c8g +max_clients: 5 +details: + steps: + start: start.md + - name: 查看启动状态 + content: step2.md + finish: finish.md diff --git "a/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/start.md" "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/start.md" new file mode 100644 index 0000000000000000000000000000000000000000..97a124c502d3ea54daf746808ca868e91785ab30 --- /dev/null +++ "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/start.md" @@ -0,0 +1,8 @@ +添加 EPAO 源 +```shell +yum install anolis-epao-release +``` +安装OceanBase +```shell +yum install oceanbase-ce +``` \ No newline at end of file diff --git "a/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/step2.md" "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/step2.md" new file mode 100644 index 0000000000000000000000000000000000000000..19eb52f6406cbbcf908c93c4ae829a8dc5fa56e8 --- /dev/null +++ "b/anolis-courses/oceanbase_install/OceanBase\345\256\211\350\243\205\351\203\250\347\275\262/step2.md" @@ -0,0 +1,11 @@ +启动 OceanBase +```shell +sudo systemctl start oceanbase +``` + +查看 OceanBase 数据库的启动状态 +```shell +sudo systemctl status oceanbase +``` + +当状态显示为 Service is ready 时,表示 OceanBase 数据库已正常启动。 \ No newline at end of file diff --git a/anolis-courses/oceanbase_install/index.yaml b/anolis-courses/oceanbase_install/index.yaml new file mode 100644 index 0000000000000000000000000000000000000000..47fb9f7da37a669cd72b064b0800c7e432bf89bc --- /dev/null +++ b/anolis-courses/oceanbase_install/index.yaml @@ -0,0 +1,10 @@ +name: OceanBase 部署 +desc: OceanBase 部署 +type: course +total_time: 10min +level: beginner +chapters: + - name: OceanBase安装部署 + desc: OceanBase安装部署 + content: + live_time: 5min \ No newline at end of file