You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: seekdb/README.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,11 @@ Before deploying `seekdb`, ensure that the following requirements are met:
20
20
To start a SeekDB instance, use the following commands:
21
21
22
22
```bash
23
-
docker run -d -p 2881:2881 oceanbase/seekdb
23
+
docker run -d -p 2881:2881 -p 2886:2886 oceanbase/seekdb
24
24
25
25
# Execute init SQL scripts after bootstrap, you need to mount the directory containing the init scripts then specify the directory in container via environment variable INIT_SCRIPTS_PATH.
26
26
# Please do not change root user's password in SQL scripts. If you'd like to change root user's password, use environment variable ROOT_PASSWORD.
27
-
docker run -d -p 2881:2881 -v {init_sql_folder_path}:/root/boot/init.d -e INIT_SCRIPTS_PATH=/root/boot/init.d oceanbase/seekdb
# **Note:** If you decide to use a configuration file, please don't specify the resource related environment variables.
61
-
docker run -d -p 2881:2881 -v {config_file}:/etc/oceanbase/seekdb.cnf oceanbase/seekdb
61
+
docker run -d -p 2881:2881 -p 2886:2886 -v {config_file}:/etc/oceanbase/seekdb.cnf oceanbase/seekdb
62
62
```
63
63
64
64
## Data Persistence
65
65
SeekDB deploys in directory /var/lib/oceanbase, if you'd like to persist the data on the host server, please mount an empty directory on the host server to this path.
66
66
67
67
```
68
68
mkdir -p seekdb
69
-
docker run -d -p 2881:2881 -v $PWD/seekdb:/var/lib/oceanbase --name seekdb oceanbase/seekdb
mysql -h 127.0.0.1 -P 2881 -u root -p # Connect with the root account
76
76
```
77
77
78
-
## Access obshell dashboard
79
-
The container launches obshell as well, it provide a user-friendly web interface, if you'd like to access obshell dashboard, you may expose the obshell dashboard's port as well.
80
-
```
81
-
# 2886 is the port of obshell dashboard
82
-
docker run -d -p 2881:2881 -p 2886:2886 oceanbase/seekdb
83
-
```
84
-
you may access it in the browser `http://${server_ip}:2886`, the login password is the same as user root's password. If ROOT_PASSWORD is not set, leave the password field blank.
85
-
78
+
## Access dashboard
79
+
The container provides a user-friendly web interface, you can access it in the browser `http://${server_ip}:2886`, the login password is the same as user root's password. If ROOT_PASSWORD is not set, leave the password field blank.
0 commit comments