cd /tmp
无法在CentOS 7
wget http://www-us.apache.org/dist/lucene/solr/6.2.0/solr-6.2.0.tgz
tar xzf solr-6.2.0.tgz solr-6.2.0/bin/install_solr_service.sh --strip-components=2
[[email protected] tmp]# sudo ./install_solr_service.sh solr-6.2.0.tgz
id: solr: no such user
Creating new user: solr
adduser: group '--disabled-password' does not exist
Extracting solr-6.2.0.tgz to /opt
Installing symlink /opt/solr -> /opt/solr-6.2.0 ...
Installing /etc/init.d/solr script ...
/etc/default/solr.in.sh already exist. Skipping install ...
/var/solr/data/solr.xml already exists. Skipping install ...
/var/solr/log4j.properties already exists. Skipping install ...
chown: invalid spec: ‘solr:’
./install_solr_service.sh: line 322: update-rc.d: command not found
id: solr: no such user
User solr not found! Please create the solr user before running this script.
id: solr: no such user
User solr not found! Please create the solr user before running this script.
Service solr installed.
同样的步骤在很多网站都提到Solr的安装6.2.0当创建用户时,一个我正在关注的是https://www.howtoforge.com/tutorial/how-to-install-and-configure-solr-on-ubuntu-1604/