我可以安装它,但是看不到我的文件。我相信这是一个权限问题,因为plexmediaserver由“ plex”用户运行。在Ubuntu 14.04中,我可以进行编辑,/etc/default/plexmediaserver
以便由我运行。它似乎在16.04中不起作用(因为systemd吗?)。
我已经尝试使用debian来源或deb 尝试http://www.htpcguides.com/install-plex-media-server-ubuntu-16-x-and-later/。我似乎无法启动该服务..
[user@machine]:[~] $ sudo systemctl start plexmediaserver.service
Job for plexmediaserver.service failed because the control process exited with error code. See "systemctl status plexmediaserver.service" and "journalctl -xe" for details.
[user@machine]:[~] $ systemctl status plexmediaserver.service
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/etc/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─local.conf
Active: inactive (dead) (Result: exit-code) since lun. 2016-05-02 18:58:40 CEST; 34s ago
Process: 2784 ExecStart=/bin/sh -c /usr/lib/plexmediaserver/Plex\ Media\ Server (code=exited, status=139)
Process: 2779 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0
Main PID: 2784 (code=exited, status=139)
mai 02 18:58:35 machine systemd[1]: plexmediaserver.service: Unit entered failed state.
mai 02 18:58:35 machine systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
mai 02 18:58:40 machine systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
mai 02 18:58:40 machine systemd[1]: Stopped Plex Media Server for Linux.
mai 02 18:58:40 machine systemd[1]: plexmediaserver.service: Start request repeated too quickly.
mai 02 18:58:40 machine systemd[1]: Failed to start Plex Media Server for Linux.
mai 02 18:59:02 machine systemd[1]: plexmediaserver.service: Start request repeated too quickly.
mai 02 18:59:02 machine systemd[1]: Failed to start Plex Media Server for Linux.
sudo systemctl --system daemon-reload && sudo service plexmediaserver start
Plex是否以我的用户(cfps aux | grep plex
)的身份运行,所以我进行了重新启动并成功了。