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$
linux软连接目标不存在,Linux ln创建软连接之后无法使用,无法whereis相关推荐
- ln创建软连接,目录权限777,cd却报错:权限不够
问题: ln创建软连接,在两个普通用户po和xx下,创建软连接,即使/home/po/pph/app/pp/目录权限是777,假设/home/po其他用户没有权限, ln -s /home/po/pp ...
- Ubutnu中ln创建软连接失败
重新命名文件名之后 mv /usr/local/phantomjs-2.1.1-linux-x86_64 /usr/local/phantomjs 创建软连接失败 hdslave1:/usr/loca ...
- linux生成不能访问的文件夹,Linux ln创建软连接之后无法使用,无法whereis
Linux 创建一个可直接调用的 indexer 但创建之后无法调用,提示不存在. 文件位置 ~/sphinx-3.0.3/bin/indexer 目标链接 /usr/local/bin/indexe ...
- linux 软连接失败,Linux ln创建软连接之后无法使用,无法whereis
Linux 创建一个可直接调用的 indexer 但创建之后无法调用,提示不存在. 文件位置 ~/sphinx-3.0.3/bin/indexer 目标链接 /usr/local/bin/indexe ...
- linux系统删除lammps任务,Linux 的常用命令
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 Linux 的常用命令 (1)vi Linux 文本编辑器 (2)vim vi 的高级版本,vim 可以用颜色或者底线等方式显示一些特殊的 信息 :wq ...
- linux创建软连接记录
创建软连接 1.背景介绍 2.方案 2.1.创建 2.2.删除 3.总结 1.背景介绍 我们知道在linux中经常需要复制文件,但是由于内存限制,我们可以选择创建软连接,那么如何创建呢?可以使用下面的 ...
- ln -sf是永久生效的吗linux,ln -s 软连接介绍
软连接(softlink)也称符号链接.linux里的软连接文件就类似于windows系统中的快捷方式.软连接文件实际上是一个特殊的文件,文件类型是I.软连接文件实际上可以理解为一个文本文件,这个文件 ...
- 软连接和硬连接(Linux创建软连接一定要用绝对路径)
一.Linux连接文件 Linux有两种连接文件:符号连接(软连接)和硬链接,符号链接类似Windows下的快捷方式.硬链接通过文件系统的inode连接来产生新文件名,而不是产生新文件. inode: ...
- linux init.d添加启动脚本 ln,linux编写可运行的shell脚本并在其他目录创建ln连接与设置开机启动...
ln :创建连接文件 - 默认创建的是硬连接,好比复制 ,但是两个文件会同步 命令:ln ./java/android/aa.txt aaa - s :创建的是软连接变为指向(类似于windows的 ...
最新文章
- SAP SD基础知识之物料确定(Material Determination)
- “Hello,Jetpack”:构建您的第一个Jetpack应用程序
- [云炬创业基础笔记]盈利构造
- 6种CSS控制元素上下居中效果
- java 构建者模式_Java方法中的参数太多,第3部分:构建器模式
- 计算机命令秒退,Win10专业版下ping命令闪退自动关闭的解决办法
- Android文件夹占用空间分析,关于Android中图片大小、内存占用与drawable文件夹关系的研究与分析...
- 专业英语(电子、通信)单词集
- MATLAB结构模态分析
- 网络安全----身份认证
- 南阳oj The Triangle
- 物理专业英语词汇(O-Z)
- 神舟笔记本键盘灯不亮驱动
- 全局变量、函数原型和Guard macro
- 如何防止数据库的编码格式跟项目编码格式不一致产生乱码, 怎么让数据库的编码格式跟项目编码格式保持一致
- Lambda表达式的学习
- 算法比较——ROC曲线和PR曲线
- 汉谟塔C语言,巴别塔的故事
- c语言5个人分鱼程序题,C语言递归解决5人分鱼问题
- ROS2机器人实验报告提示02➡沼泽⬅