我的安装目录是/usr/local,切进去,两个目录,一个命令行安装,一个gui引导安装
$ cd /usr/local
$ ll
drwxr-xr-x. 5 lightdb lightdb 51 1月 6 16:40 lightdb
drwxr-xr-x. 5 lightdb lightdb 51 1月 6 17:21 lightdb-gui
#查看lightdb进程
$ ps aux|grep lightdb
lightdb 12513 0.1 9.2 1653592 357384 ? Ss 16:41 0:09 /usr/local/lightdb/lightdb-x/13.8-22.3/bin/lightdb -D /usr/local/lightdb/lightdb-x/13.8-22.3/data/defaultCluster
lightdb 12516 0.0 0.0 245172 2504 ? Ss 16:41 0:00 lightdb: logger
lightdb 12518 0.0 0.6 1655228 24624 ? Ss 16:41 0:00 lightdb: checkpointer
lightdb 12519 0.0 0.4 1655124 16216 ? Ss 16:41 0:04 lightdb: background writer
lightdb 12520 0.0 3.4 1653592 133964 ? Ss 16:41 0:03 lightdb: walwriter
lightdb 12521 0.0 0.1 1657752 3924 ? Ss 16:41 0:00 lightdb: autovacuum launcher
lightdb 12522 0.0 0.0 247656 2864 ? Ss 16:41 0:02 lightdb: stats collector
lightdb 12523 0.4 0.7 1658904 29568 ? Ss 16:41 0:28 lightdb: lt_cron launcher
lightdb 12524 0.0 0.0 1657592 3280 ? Ss 16:41 0:00 lightdb: logical replication launcher
lightdb 23231 0.0 0.0 115544 2108 pts/2 S 18:15 0:00 bash
lightdb 24038 1.1 9.2 1653596 357444 ? Ss 18:22 0:04 /usr/local/lightdb-gui/lightdb-x/13.8-22.3/bin/lightdb
lightdb 24045 0.0 0.0 245176 2500 ? Ss 18:22 0:00 lightdb: logger
lightdb 24047 0.0 0.0 1653596 2528 ? Ss 18:22 0:00 lightdb: checkpointer
lightdb 24048 0.1 0.2 1655128 9880 ? Ss 18:22 0:00 lightdb: background writer
lightdb 24049 0.0 3.4 1653596 133960 ? Ss 18:22 0:00 lightdb: walwriter
lightdb 24050 0.0 0.1 1657652 5856 ? Ss 18:22 0:00 lightdb: autovacuum launcher
lightdb 24051 0.0 0.0 247668 2880 ? Ss 18:22 0:00 lightdb: stats collector
lightdb 24052 0.4 0.4 1658908 18928 ? Ss 18:22 0:01 lightdb: lt_cron launcher
lightdb 24053 0.0 0.1 1657592 5332 ? Ss 18:22 0:00 lightdb: logical replication launcher
#lightdb停止
$ cd /usr/local/lightdb-gui/lightdb-x/13.8-22.3/bin
$ ls
base.py lightdb.lic ltcluster_start.sh lt_keytool lt_rewind pg_send_cancellation
clusterdb lightdb_service.py ltcluster_stop.sh lt_lightdb_executor.jar ltsql plain_dump.sh
createdb lightsql lt_config ltloader lt_standby postmaster
createuser lt_archivecleanup lt_controldata ltlog.py lt_test_fsync ps-io-utilization.sh
dropdb lt_basebackup lt_ctl lt_patch lt_test_timing ps-processor-utilization.sh
dropuser ltbench ltdts_logicalrepl_copier.sh lt_probackup lt_upgrade ps-report.pl
ecpg lt_bulkload ltdts_recvlogical lt_probackup_for_em.sh lt_verifybackup ps-util.pl
ha_primary_start.sh ltcenter lt_dump lt_receivewal lt_waldump reindexdb
ha_primary_stop.sh lt_checksums lt_dumpall lt_recvlogical lvs_ds.sh switchover.sh
initdb ltcluster lt_initdb lt_resetwal lvs_rs.sh vacuumdb
lightdb ltclusterd lt_isready lt_restore oid2name vacuumlo
#使用lt_ctl工具
$ ./lt_ctl --help
lt_ctl is a utility to initialize, start, stop, or control a LightDB server.
Usage:
lt_ctl init[db] [-D DATADIR] [-s] [-o OPTIONS]
lt_ctl start [-D DATADIR] [-l FILENAME] [-W] [-t SECS] [-K KEY-CMD] [-s]
[-o OPTIONS] [-p PATH] [-c]
lt_ctl stop [-D DATADIR] [-m SHUTDOWN-MODE] [-W] [-t SECS] [-s]
lt_ctl restart [-D DATADIR] [-m SHUTDOWN-MODE] [-W] [-t SECS] [-K KEY-CMD] [-s]
[-o OPTIONS] [-c]
lt_ctl reload [-D DATADIR] [-s]
lt_ctl status [-D DATADIR]
lt_ctl promote [-D DATADIR] [-W] [-t SECS] [-s]
lt_ctl logrotate [-D DATADIR] [-s]
lt_ctl kill SIGNALNAME PID
# 停止服务
$ lt_ctl stop
# 启动服务
$ lt_ctl start
#重启服务
$ lt_ctl restart
#指定数据目录
$ lt_ctl -D