服务器操作系统 Centos 6.5
安装路径 /opt
软件包下载链接 https://omnidb.org/dist/2.16.0/omnidb-server_2.16.0-centos7-amd64.rpm
1.到服务器/opt使用rpm -ivh omnidb-server_2.16.0-centos6-amd64.rpm安装,
安装完成会在当前路径生成omnidb-server文件夹,配置文件存放路径/opt/omnidb-server/omnidb.conf
2.启动服务,直接执行omnidb-server
[root@localhost opt]# omnidb-server Starting OmniDB websocket... Checking port availability... Starting websocket server at port 25482. Starting OmniDB server... Checking port availability... Starting server OmniDB 2.4.0 at 0.0.0.0:8000. Starting migration of user database from version 0.0.0 to version 2.4.0 OmniDB successfully migrated user database from version 0.0.0 to version 2.4.0 Press Ctrl+C to exit
在后台运行执行 nohup omnidb-server -H 0.0.0.0 & ,下面是一些相关的启动参数。
Usage: omnidb-server [options] Options: --version show program's version number and exit -h, --help show this help message and exit -H HOST, --host=HOST listening address -p PORT, --port=PORT listening port -w WSPORT, --wsport=WSPORT websocket port -e EWSPORT, --ewsport=EWSPORT external websocket port -d HOMEDIR, --homedir=HOMEDIR home directory containing local databases config and log files -c CONF, --configfile=CONF configuration file