跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • aria2c用www用户运行
未分類
24 2 月 2020

aria2c用www用户运行

liucent 大佬有话说 : 2019-12-12 15:59:27

aria2c用www用户运行

本帖最后由 liucent 于 2019-12-12 16:17 编辑

请教下各位mjj 用的啥方法用www用户运行的aria2c
试过sudo su www "aria2c –conf-path=/home/www/aria2/aria2.conf -D", 但始终提示配置文件aria2.conf不存在, 即使把配置文件aria2.conf放到/home/www/下也不行

一位不知名网友 大佬有话说 : 2019-12-12 16:00:18

https://blog.csdn.net/xinlan3618/article/details/94384338

liucent 大佬有话说 : 2019-12-12 16:10:36

一位不知名网友 大佬有话说 : 2019-12-12 16:00
https://blog.csdn.net/xinlan3618/article/details/94384338

内容很详细 但是貌似没有介绍用非root用户运行的办法 yc002t

妖言惑众 大佬有话说 : 2019-12-12 16:12:29

使用www用户执行一下这两条
export PATH=$PATH:/usr/local/aria2/bin
source /etc/profile

root下执行不会影响到www的,需要www单独在执行一次

hack715 大佬有话说 : 2019-12-12 16:14:37

ExecStartPre=/sbin/setcap cap_net_admin+ep /usr/bin/aria2c

dgms 大佬有话说 : 2019-12-12 16:26:02

你确定www用户有权限访问配置文件和父目录吗

qianyuqianxun 大佬有话说 : 2019-12-12 16:28:55

https://www.jianshu.com/p/74ab7c2053acmac详细配置我反正能用

jimifan12138 大佬有话说 : 2019-12-12 16:43:38

用pm2运行啊,可以指定www用户的pid和gid运行

liucent 大佬有话说 : 2019-12-12 17:19:46

本帖最后由 liucent 于 2019-12-12 17:25 编辑

dgms 大佬有话说 : 2019-12-12 16:26
你确定www用户有权限访问配置文件和父目录吗

把aria.conf放到etc下面后 配置文件有权限了 不过现在又报ssl证书没有权限了 yc002t
ssl证书使用root账户certbot生成的

Exception: errorCode=28 We encountered a problem while processing the option ‘–rpc-certificate’.
-> errorCode=1 Could not get file status: Permission denied

KirbyKFC 大佬有话说 : 2019-12-12 17:21:50

sudo -u www-data /usr/bin/aria2c –conf-path /var/www/html/AriaNg/aria2.conf -D

我直接放网站目录了,权限配置统一

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具