...
Smartbi config页面配置完成,需要重启Smartbi,使配置生效,重启方法请参考 后续文档。
2.
...
2手动启动
手工启动服务的方法如下:
注意:启动服务前需要执行 source smartbi_env 生成相关的环境变量。
...
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>/SmartbiEngine/engine/sbin/
./experiment-daemon.sh start #启动执行引擎 #启动执行引擎
./service-daemon.sh start #启动服务引擎
|
...
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>/SmartbiUnionserver/
nohup sh run.sh > /dev/null 2>&1 &
|
3.重启产品
3.1重启脚本
Linux一键安装包中的重启脚本restart.sh,可以重启所有已安装的服务。
重启所有安装的服务,可执行以下操作:
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>
source smartbi_env
./restart.sh #重启所有安装的服务
|
执行脚本时需要输入 y 确认重启所有已部署的服务,输入 n 则不重启并且脚本退出执行:
Image Added
3.2手动重启
手工重启服务的方法如下:
注意:重启服务前需要执行 source smartbi_env 生成相关的环境变量。
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>
source smartbi_env
|
①重启Mysql数据库
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>/Mysql/
./mysqld restart
|
②重启Tomcat
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>/Tomcat/bin/
ps -ef | grep "Tomcat" | grep "Jdk" #找到Tomcat进程ID
kill -9 Tomcat进程ID #结束Tomcat进程
./startup.sh #启动Tomcat
|
③重启Smartbi MPP
Centos6操作系统:
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
service clickhouse-server restart
|
Centos7操作系统:
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
systemctl restart clickhouse-server
|
④重启数据挖掘引擎
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>/SmartbiEngine/engine/sbin/
./experiment-daemon.sh restart #重启执行引擎
./service-daemon.sh restart #重启服务引擎
|
⑤重启跨库联合查询
代码块 |
---|
language | bash |
---|
linenumbers | true |
---|
|
cd <安装目录>/SmartbiUnionserver/
ps -ef | grep "SmartbiUnionserver" | grep "Jdk" #找到跨库联合查询进程ID
kill -9 跨库联合查询进程ID #结束跨库联合查询进程
nohup sh run.sh > /dev/null 2>&1 & #启动跨库联合查询
|