1.创建solr用户 useradd solr 2.设置solr-7.7.2目录拥有者 cd /usr/local/ chown -R solr:solr solr-7.7.2 3.在/etc/init.d/目录创建solr服务 cd /etc/init.d/ vi solr solr文件内容: #!/bin/sh # #chkconfig: SOLR_INSTALL_DIR=/usr/local/solr- case "$1" in start|stop|restart|status
原理就是在注册表启动项里添加一项.路径:SOFTWARE\Microsoft\Windows\CurrentVersion\Run或者直接:运行->regedit找到这个路径添加一项. using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using Sy