通过查看前面的帖子,我尝试了这些步骤但出现了这个错误。
sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver
utserver -settingspath /opt/utorrent-server-v3_0/
bash: /usr/bin/utserver: No such file or directory
这是错误。尝试了至少 10 次,但无法解决错误。请帮忙。
输出: ls -la /usr/bin/utserver
shiril@Shiril-PC:~$ ls -la /usr/bin/utserver lrwxrwxrwx 1 root root 34 8月 2 16:57 /usr/bin/utserver -> /opt/utorrent-server-v3_0/utserver
我尝试了上述步骤并得到了以下结果......
shiril@Shiril-PC:~/Downloads$ sudo rm -r /opt/utorrent-server-v3*
rm: cannot remove ‘/opt/utorrent-server-v3*’: No such file or directory
shiril@Shiril-PC:~/Downloads$ sudo tar xf utserver.tar.gz -C /opt
shiril@Shiril-PC:~/Downloads$ ls -la /opt
total 16
drwxr-xr-x 4 root root 4096 Aug 4 03:14 .
drwxr-xr-x 24 root root 4096 Aug 3 04:39 ..
drwxr-xr-x 30 root root 4096 Aug 1 11:17 lampp
drwxrwxr-x 3 shiril shiril 4096 Jan 15 2014 utorrent-server-alpha-v3_3
shiril@Shiril-PC:~/Downloads$ sudo ln -s /opt/utorrent-server-alpha-v3_3/utserver /usr/bin/utserver
shiril@Shiril-PC:~/Downloads$ % utserver -usage
bash: fg: %: no such job
shiril@Shiril-PC:~/Downloads$ % utserver -settingspath /opt/utorrent-server-alpha-v3_3
bash: fg: %: no such job
答案1
版本号已更改。不再有 3.0 版本。当前版本是 3.3。因此我假设您没有文件夹/opt/utorrent-server-v3_0
家政
sudo rm -r /opt/utorrent-server-v3*
再次提取档案
sudo tar xf utserver.tar.gz -C /opt
检查创建的文件夹
/opt
ls -la /opt
例如
drwxrwxr-x 4 4096 Aug 2 21:33 utorrent-server-alpha-v3_3
创建符号链接并使用正确的文件夹名称,参见第 3 点。
sudo ln -s /opt/utorrent-server-alpha-v3_3/utserver /usr/bin/utserver
就这样
utserver -usage
Locale LC_CTYPE=en_US.UTF-8;LC_NUMERIC=de_DE.UTF-8;LC_TIME=de_DE.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=de_DE.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=de_DE.UTF-8;LC_ADDRESS=de_DE.UTF-8;LC_TELEPHONE=de_DE.UTF-8;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=de_DE.UTF-8 330B (30470) 2014-01-14 09:10:15 -0800 Usage: utserver -settingspath -logfile -configfile -pidfile -daemon -usage settingspath - location of settings directory logfile - location and name of log file configfile - location and name of configuration file pidfile - location and name of file to contain process ID daemon - run process as a daemon usage - print this message and exit
启动服务器(并使用正确的文件夹名称,参见第 3 点)
utserver -settingspath /opt/utorrent-server-alpha-v3_3