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相关推荐
- linux打压缩包去掉某个文件夹,linux tar压缩排除某个文件夹的方法
一般直接用tar命令打包很简单,直接使用 tar -zcvf test.tar.gz test 即可. 在很多时候,我们要对某一个目录打包,而这个目录下有几十个子目录和子文件,我们需要在打包的时候排除 ...
- linux访问nfs文件夹,linux配置NFS网络共享文件夹目录
网络共享磁盘大家都用过,在windows上叫共享文件夹,linux叫共享目录,linux上配置网络共享目录也有很多中方式samba和nfs,各自有各自的优点,nfs是比较常用的. 1.安装NFS 服务 ...
- Linux 设置windows可见的文件夹共享,创建只拥有读权限的共享用户,samba工具安装,“smbpasswd: command not found“问题解决
linux 设置 windows 可见的共享文件夹 第一章:文件夹共享设置方法 ① 设置文件共享,只拥有读权限 ② windows 用户访问测试 ③ samba 服务安装,"smbpassw ...
- linux分屏显示命令文件夹,Linux简易命令整理
Linux简易入门 1. Linux 概述 1.11 Linux 是什么 1.2 虚拟机 1.3 centOs 2. Linux 基本知识 2.1 Linux基本常识 2.2 Linux 终端 3. ...
- linux b权限开头的文件夹,linux文件权限与目录配置
一.Linux文件属性及权限 1.文件/目录属性查看 (1)文件属性查看 [root@localhost ~]# ls -l file - rw-r--r--. 1 ...
- linux解压rar多层文件夹,linux rar 解压文件夹_rar文件夹
原标题:linux rar 解压文件夹_rar文件夹 本经验主要针对linux中的解压缩进行讲解工具/原料linux电脑一台linux文件解压缩1目前 rar a jpg.rar *.jpg //ra ...
- linux剪切到另一个文件夹,linux下文件夹操作常见命令如创建、复制、剪切、重命名、清空和删除命令 实例说明...
linux下文件夹操作常见命令如创建.复制.剪切.重命名.清空和删除命令 实例说明,在home目录下有wwwroot目录,wwwroot下有sinozzz目录,即/home/wwwroot/sinoz ...
- linux如何用终端删除文件夹,linux删除文件夹命令
在Linux系统中没有回收站,因此我们要删除文件夹的时候需要注意,下面由学习啦小编为大家整理了linux删除文件夹命令,希望对大家有帮助! linux删除文件夹命令详解 一.rm命令使用权限 所有用户 ...
- linux移动一个桌面的文件夹,linux实用命令之如何移动文件夹及文件下
Linux操作系统是基于UNIX操作系统发展而来的一种克隆系统,它诞生于1991 年的 [Linux桌面] 10 月5 日(这是第一次正式向外公布的时间).接下来是小编为大家收集的linux实用命令之 ...
最新文章
- struts2之配置文件struts.xml详解
- c#,Winform同一系统中只运行一个实例。
- python3 返回当前星期几 中文
- php set name,PHP Gmagick setfilename()用法及代码示例
- jQuery 遍历|祖先
- 2019年,异质图神经网络领域有哪些值得读的顶会论文?
- VTK:RenderMan之PolyDataRIB
- CUDA TOOlkit Programming Guide 2. Programming Model
- thinkphp5 return 返回空_杨丞琳演唱会意外踩空,从两层楼高的舞台掉落,李荣浩心疼发文...
- ROMMON下IOS的恢复
- Ruby 安装 - Linux
- 一个被忽视的强大搜图技能——以图搜图
- 公众号迁移开通留言功能
- 虚拟机更新升级,原来的GuestAdditions versions版本不匹配
- 第17节 三层交换机技术—工作原理及相关命令
- r740服务器固态硬盘和机械硬盘一起用_搭载固态硬盘的服务器究竟比搭机械硬盘快多少?...
- java和javascript有什么区别_javascript与java有什么区别?
- android涟漪动画,如何添加涟漪效果并在android中的按钮上有自定义背景?
- 百度网盘2T学习资源分享干货满满
- 索尼相机摄像机断电MP4视频无XML文件数据恢复修复方法
热门文章
- redis最基础的入门教程
- easyui input输入框的限制和校验条件
- html(7)盒子模型
- JavaScript多浏览器兼容
- UML从需求到实现----用例
- 循环的中断操作(C#基础回顾03)
- CSS3新单位vw,vh,vmin,vmax详解
- [bzoj1008] [HNOI2008]越狱
- 2015-2016 XVI Open Cup, Grand Prix of Bashkortostan, SKB Kontur Cup Stage 2
- linux常用的BootLoader U-boot的前世今生