linux软连接目标不存在,Linux ln创建软连接之后无法使用,无法whereis

Linux 创建一个可直接调用的 indexer 但创建之后无法调用,提示不存在。

文件位置 ~/sphinx-3.0.3/bin/indexer

目标链接 /usr/local/bin/indexer

执行代码:

www:~ nginx$ ln -s sphinx-3.0.3/bin/indexer /usr/local/bin/indexer

www:~ nginx$ whereis indexer

www:~ nginx$ which indexer

www:~ nginx$ indexer

-bash: /usr/local/bin/indexer: No such file or directory

www:~ nginx$ ls -la /usr/local/bin/indexer

lrwxr-xr-x 1 nginx admin 24 7 21 10:11 /usr/local/bin/indexer -> sphinx-3.0.3/bin/indexer

问题:

确实是存在这个脚本,但无法执行

有文件在 /usr/local/bin 目录下,但 whereis 却没有结果

www:~ nginx$ sphinx-3.0.3/bin/indexer

Sphinx 3.0.3 (commit facc3fb)

Copyright (c) 2001-2018, Andrew Aksyonoff

Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Usage: indexer [OPTIONS] [indexname1 [indexname2 [...]]]

Options are:

-v, --version show version and build options

--config read configuration from specified file

(default is sphinx.conf)

--all reindex all configured indexes

--quiet be quiet, only print errors

--verbose verbose indexing issues report

--noprogress do not display progress

(automatically on if output is not to a tty)

--rotate send SIGHUP to searchd when indexing is over

to rotate updated indexes automatically

--sighup-each send SIGHUP to searchd after each index

(used with --rotate only)

--buildstops

build top N stopwords and write them to given file

--buildfreqs store words frequencies to output.txt

(used with --buildstops only)

--merge

merge 'src-index' into 'dst-index'

'dst-index' will receive merge result

'src-index' will not be modified

--merge-dst-range

filter 'dst-index' on merge, keep only those documents

where 'attr' is between 'min' and 'max' (inclusive)

--dump-rows dump indexed rows into FILE

--print-queries print SQL queries (for debugging)

--keep-attrs retain attributes from the old index

Examples:

indexer --quiet myidx1 reindex 'myidx1' defined in 'sphinx.conf'

indexer --all reindex all indexes defined in 'sphinx.conf'

www:~ nginx$

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值