简体   繁体   English

如何在Windows OS中为Jetty 7添加用户

[英]How to add user for Jetty 7 in windows OS

I am learning how to use Jetty 7 for the first time. 我正在学习如何第一次使用Jetty 7。 I followed the steps in this tutorial: https://wiki.apache.org/solr/SolrJetty 我遵循了本教程中的步骤: https : //wiki.apache.org/solr/SolrJetty

The website is presenting the steps using Linux command (I believe). 该网站正在介绍使用Linux命令的步骤(我相信)。 However I am using windows 7, and I am stuck at the Create User portion. 但是,我使用的是Windows 7,并且停留在“创建用户”部分。

Creating user

Don't forget to create solr user in the system.

useradd -d /opt/solr -s /sbin/false solr
chown solr:solr -R /opt/solr
chown solr:solr -R /var/log/solr # if you use alternative folder for logs
NOTE: If you don't have start-stop-daemon tool you have to setup /bin/bash instead /sbin/false.

So my question is how do I do this in Windows? 所以我的问题是如何在Windows中执行此操作?

a very good way is to use yajsw . 一个非常好的方法是使用yajsw This will allow you to install Solr as a service in windows, and also in unix/linux, as it is cross platform. 这将允许您在Windows以及unix / linux中将Solr作为服务安装,因为它是跨平台的。 So if you learn how to use it in one OS it will be very similar in others. 因此,如果您学习如何在一种操作系统中使用它,则在其他操作系统中将非常相似。

I have used it many times in linux/windows. 我在linux / windows中使用了很多次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM