简体   繁体   English

如何使用ttservctl文件启动东京暴君服务器

[英]How to start Tokyo tyrant server using ttservctl file

i successfully tokyo tyrant and tokyo cabinet now i have to start the tokyo tyrant server when i run the command 我现在已经成功地执行了东京暴君和东京内阁的命令,我必须在运行命令时启动东京暴君服务器

./ttservctl start ./ttservctl开始

instead of starting the server it is giving me error and the output is 而不是启动服务器,这给了我错误,输出是

ritesh@ritesh-desktop:~/tokyotyrant-1.1.33$ sudo ./ttservctl start
Starting the server of Tokyo Tyrant
Executing: ttserver -port 1978 -dmn -pid /var/ttserver/pid
./ttservctl: 76: ./ttservctl: ttserver: not found
The server could not started

how to resolve this error i am new to tokyo tyrant please guideline!! 如何解决此错误我是东京暴君的新手,请指导!!

you can find the "ttserver" file by using the this simple command and the use the result as as bash command: 您可以使用以下简单命令并将结果用作bash命令来找到“ ttserver”文件:

find / -name ttserver

when i used the command it gave me a result like this: 当我使用命令时,它给了我这样的结果:

/usr/local/tokyotyrant-1.1.33/bin/ttserver

ttservctl is the shell script used to start/stop/restart the Tokyo Tyrant server (aka startup script). ttservctl是用于启动/停止/重新启动Tokyo Tyrant服务器的Shell脚本(也称为启动脚本)。 This startup script is just a wrapper around the ttserver command-line tool. 该启动脚本只是ttserver命令行工具的包装。

Your problem here is that your shell cannot find the ttserver tool which is certainly not in your $PATH . 您的问题是您的外壳找不到ttserver工具,该工具当然不在$PATH

It sounds as if: 听起来好像:

  1. you try to execute the startup script located at the root of the Tokyo Tyrant source code: ./ttservctl 您尝试执行位于东京暴君源代码根目录下的启动脚本: ./ttservctl
  2. and thus, you have NOT installed Tokyo Tyrant but just built it (ie ./configure && make ) 因此,您尚未安装Tokyo Tyrant,而已构建它(即./configure && make

You should re-build it and run make install : by default it will be installed under /usr/local but you can change this at configure time via the --prefix=/path/to/dest option. 您应该重新构建它并运行make install :默认情况下它将安装在/usr/local但是您可以在配置时通过--prefix=/path/to/dest选项更改它。

Once done just hit ttservctl start without the ./ and it should work. 完成后,只需按ttservctl start不带./即可ttservctl start ,它应该可以工作。

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

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