
linux服务启动
./elasticsearch -d
停止服务
ps -ef |grep elasticsearchkill -9 进程号
## 启动服务systemctl start kibana## 查看服务状态systemctl status kibana
su rootcd /lib/systemd/system/ ## 配置服务的目录vim /lib/systemd/system/kibana.service ## 写入如下内容
[Unit]Description=kibanaAfter=network.target[Service]Type=simpleUser=elasticExecStart=/opt/kibana-8.0.0/bin/kibanaPrivateTmp=true[Install]WantedBy=multi-user.target
User 修改,可以创用户
ExecStart 修改为启动的那个文件
## 更新systemd配置文件systemctl daemon-reload## 使服务生效systemctl enable kibana