AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[search](server)

Martin Hope
20f2c98f50
Asked: 2020-08-09 10:05:08 +0800 CST

如何更改 Solr 中的默认密码?

  • 0

我有一个 Ubuntu 20.04 的 Solr 服务器

我遵循了文档,但我无法更改默认密码。

我怎样才能做到这一点 ?

ubuntu@www-example-com ~ $ $ curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"solr":"hhjhjhj765"}}'
$: command not found

更新

ubuntu@www-example-com ~ $ curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"solr":"hhjhjhj765"}}'


{
  "responseHeader":{
    "status":500,
    "QTime":4},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","java.nio.file.AccessDeniedException"],
    "msg":"Failed persisting security.json to /var/solr/data/security.json",
    "trace":"org.apache.solr.common.SolrException: Failed persisting security.json to /var/solr/data/security.json\n\tat org.apache.solr.handler.admin.SecurityConfHandlerLocal.persistConf(SecurityConfHandlerLocal.java:89)\n\tat org.apache.solr.handler.admin.SecurityConfHandler.doEdit(SecurityConfHandler.java:134)\n\tat org.apache.solr.handler.admin.SecurityConfHandler.handleRequestBody(SecurityConfHandler.java:85)\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)\n\tat org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:820)\n\tat org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:786)\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:546)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:423)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:350)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1711)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1347)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1678)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1249)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:505)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\n\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.nio.file.AccessDeniedException: /var/solr/data/security.json\n\tat sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)\n\tat sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)\n\tat java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)\n\tat java.nio.file.Files.newOutputStream(Files.java:216)\n\tat org.apache.solr.handler.admin.SecurityConfHandlerLocal.persistConf(SecurityConfHandlerLocal.java:84)\n\t... 42 more\n",
    "code":500}}
ubuntu search security solr
  • 1 个回答
  • 1210 Views
Martin Hope
Senior Geek
Asked: 2020-03-26 08:42:31 +0800 CST

在 vi(m) 中返回/编辑“斜杠”搜索字符串

  • 0

我试过在网上搜索,但是这些短语太笼统了,或者我不知道要搜索什么。如果我在 vi 中使用 /(一些 IP 地址),我知道我可以简单地再次输入 / (Enter) 并找到下一个匹配项。我想要做的是检索之前输入的 IP 地址,编辑它(因为我正在搜索类似的 IP 地址)并搜索编辑后的 ​​IP 地址。有没有办法做到这一点?谢谢你的帮助。

search vi slash-arguments
  • 2 个回答
  • 34 Views
Martin Hope
numan
Asked: 2012-05-19 08:00:18 +0800 CST

有没有办法对受限文件类型进行 grep?

  • 4

现在我正在使用这样的东西:

find . -name "*.xml" | xargs grep -l "foobar"

它有效,但我想知道 grep 是否内置了此功能?

search unix grep
  • 3 个回答
  • 584 Views
Martin Hope
Warren P
Asked: 2010-04-10 12:59:11 +0800 CST

如何在 Windows 7 中对 Services.msc (mmc) 窗口进行关键字搜索?

  • 9

据我所知,当你想运行一项服务时,你的能力非常有限,在所有当前的 Windows 版本中。

我通常通过在“开始”->“运行”框中键入“services.msc”来启动服务,在大多数 Windows 版本上,这是可行的。我知道如何单击 Windows 服务的 MMC 视图中的“名称”列。如果您知道服务名称的前几个字符是什么,通常可以按名称排序,然后键入前缀以向下滚动列表(例如,查找 Windows 搜索)。

这对我来说似乎很弱,所以我花了一些时间在互联网上搜索能够更好地管理服务的工具。通常我有一个我知道“fooWare”可能是关键字的关键字,我需要找到(通常命名错误的)服务并启动它并停止它。这通常太难了。

我能做的最好的事情是从命令行“NET SERVICES”,也许在那里添加一个 grep,但这并没有列出每个服务,只有其中的几个。

Win7中的MMC管理单元现在有一个导出列表按钮,导出到我不时使用的csv文本文件功能,导出然后搜索。我曾想过编写自己的工具。我希望系统管理员可以使用更好的“服务管理器”实用程序。我想在右上角有一个搜索框,有点像 Win7 和 Vista 中的“添加-删除-程序”对话框有一个搜索工具。

这样的服务实用程序是否存在?

service search windows-7 full-text-search
  • 4 个回答
  • 7613 Views
Martin Hope
Martin Vseticka
Asked: 2010-04-04 05:47:14 +0800 CST

如何在 git 存储库中搜索字符串?

  • 4

是否可以在给定的存储库中搜索字符串(例如“类名”)?

即使是长时间的手术,它对我也很有用。

感谢帮助!

search git
  • 1 个回答
  • 1363 Views
Martin Hope
senfo
Asked: 2010-03-31 08:23:39 +0800 CST

Google Search Appliance:限制结果数量

  • 1

我正在尝试限制由于Google Search Appliance 上的动态结果聚类而显示的结果数量。我浏览了 XSLT,但只遇到了以下两个用户可修改的选项:

<!-- *** dyanmic result cluster options *** -->
<xsl:variable name="show_res_clusters">1</xsl:variable>
<xsl:variable name="res_cluster_position">right</xsl:variable>

是否有更多我不知道的选项可以用来限制结果?还有另一种我想念的方式吗?

search gsa
  • 1 个回答
  • 253 Views
Martin Hope
Federico Poloni
Asked: 2010-03-21 05:32:23 +0800 CST

处理短文本片段的最佳 CMS?

  • 0

我必须安装一个 CMS 来管理一组数学问题,即我们的主要内容将是简短的(约 3 行)文本片段。我们需要添加评论和类别/标签的能力,可能需要结合不同类别约束的强大搜索功能。

一个关键的能力是可以在同一页面中组合搜索结果以生成(可打印的)问题表:似乎没有多少 CMS 能够做到这一点,而且我很难针对这个特定的功能。你们知道能够以这种方式返回格式化搜索结果的CMS吗?

提前致谢!

search cms snippet
  • 2 个回答
  • 144 Views
Martin Hope
Chris W
Asked: 2010-03-19 04:24:25 +0800 CST

SharePoint 2010 搜索 - 不搜索其他内容源

  • 0

我已经让 SP 2010 抓取辅助 Intranet 系统,我们将在它发布时作为长期运行迁移到 SharePoint 的一部分并行运行该系统。

虽然它正在毫无问题地抓取页面,但如果用户从主页上的小搜索对话框进行搜索,我看不到如何让结果显示为快速搜索结果的一部分。在“我的网站”页面中完成的搜索列出了来自 SharePoint 安装和外部内容源的移植结果。来自主搜索对话框的搜索仅列出 SharePoint 项目的结果。

我尝试添加下拉选项以选择要搜索的站点,但此列表仅包含当前站点的名称,并且不提供我认为将包含内容的“所有站点”范围选项。

我究竟做错了什么?

search sharepoint-2010
  • 1 个回答
  • 988 Views
Martin Hope
fostandy
Asked: 2010-03-09 04:49:49 +0800 CST

samba 共享的远程搜索系统

  • 2

我在小型企业环境中的 samba 服务器上有多个共享,我想为其提供搜索工具。理想情况下,这将类似于具有一些额外功能的谷歌桌面(见下文),但缺乏这个想法是采取我能得到的东西,或者至少了解那里有什么。

使用谷歌桌面搜索作为参考模型,原则上的附加要求是它可以从网络上的客户端使用。此外还有一些其他注意事项(请注意,这些都不是硬性要求)

  • 内容始终是文件,驻留在单个服务器上,可从 samba 共享访问。
    • 标准毫秒办公文件费用
    • 还有很多需要在里面搜索的rars和zip。
  • 权限支持,允许基于用户的控制来反映 samba 共享中的当前权限访问。
    • 用户群将保持相当静态,因此可以手动管理用户。
  • 大多数用户将基于 Windows

我知道那里有很多搜索索引器:beagle 和 tracker 似乎是最受欢迎的。大多数似乎不提供访问控制,并且基于网络/远程搜索似乎不是高优先级。我还在samba 邮件列表上看到了最近的一篇帖子,要求的内容几乎完全相同。(他们提到了一个名为 IBM OmniFind Yahoo! Edition 的产品,虽然他们最初的反应似乎是积极的,但我很怀疑。RHEL 4?Firefox 2?更新了很多?)

编辑:类似的问题在这里

还有什么?你有类似的情况吗?你用什么?

search samba search-server
  • 2 个回答
  • 1917 Views
Martin Hope
Hirvox
Asked: 2010-03-09 01:26:20 +0800 CST

如何索引内容编辑器 Web 部件中的内容?

  • 3

我使用的是 MOSS 2007 v12.0.0.6529,共享服务爬虫忽略了内容编辑器 Web 部件中的内容。该页面本身是一个发布页面,页面内容字段中的内容已正确编入索引并显示在搜索结果中。如何确保内容编辑器 Web 部件中的内容也被编入索引?还是我必须使用其他方法,例如页面中的其他内容字段?

经过更多测试后,我发现插入 OOB 团队网站欢迎页面的 CEWP确实出现在搜索结果中。爬虫是否以不同方式处理发布网站?

search sharepoint sharepoint-2007
  • 3 个回答
  • 1885 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve