【发布时间】:2017-01-12 05:41:48
【问题描述】:
cd /tmp
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
[root@ns52132 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.
许多网站都提到了相同的步骤,我关注的是https://www.howtoforge.com/tutorial/how-to-install-and-configure-solr-on-ubuntu-1604/
【问题讨论】:
标签: bash apache solr centos centos7