plex实现流媒体服务器_当您被锁定时,如何重新获得对Plex服务器的访问权限
plex实现流媒体服务器
For the most part, the Plex Media Server experience is pretty flawless. You install the server software, you point your Plex clients at it, and start watching your movies. But sometimes, you’ll go to log into your server only to be mysteriously shut out. Let’s dig into some arcane settings and get you back to media nirvana.
在大多数情况下,Plex Media Server的体验非常完美。 您安装服务器软件 ,将Plex客户端指向该服务器软件 ,然后开始观看电影。 但是有时,您将登录到服务器只是被神秘地拒之门外。 让我们深入研究一些神秘的设置,让您回到媒体的必杀技。
The issue manifests itself in a few different ways, but the common element is that when you go to log into your web-based control panel for your Plex server either you can’t access the control panel at all, and get an error like “You do not have permission to access this server.” Or, if you’ve ever dabbled with multiple servers or have removed and installed your Plex server on the same machine with a different account, you’ll be unable to log in with the account you wish to use.
该问题以几种不同的方式表现出来,但是常见的因素是,当您登录到Plex服务器的基于Web的控制面板时,要么根本无法访问该控制面板,而且会收到类似“您无权访问此服务器。” 或者,如果您曾经涉足多个服务器,或者已将Plex服务器卸下并安装在具有不同帐户的同一台计算机上,则将无法使用您要使用的帐户登录。
The problem is that deep behind the scenes in the Windows Registry (or in text-based configuration files on macOS and Linux), there’s an issue with how the login credentials for your account have been stored. By diving into the settings and erasing the stored tokens for your login, you can force Plex to ask for them again and get a fresh error-free login.
问题在于,在Windows注册表(或macOS和Linux上基于文本的配置文件)的幕后,您的帐户的登录凭据的存储方式存在问题。 通过深入设置并删除存储的令牌进行登录,您可以强制Plex再次要求它们并获得全新的无错误登录。
Note: Before we proceed, to be clear, this process is not about resetting your password and getting a new one from the Plex company (if you need to do so, you can do that here). Instead, this is about forcing your local Plex server to forget previously entered information so you can reenter it and properly authenticate with the central Plex login server.
注意:显然,在进行下一步之前,此过程不是要重置密码并从Plex公司获取新密码(如果需要, 可以在此处进行操作 )。 相反,这是关于迫使本地Plex服务器忘记以前输入的信息,以便您可以重新输入该信息并通过中央Plex登录服务器进行正确的身份验证。
如何重置您的Plex登录令牌 (How to Reset Your Plex Login Token)
While the basic information we need to remove (to trigger the reset) is exactly the same on every operating system, that information is located in a different place depending on your system. Let’st take a look first at how to reset your login token on Windows, and then highlight where to find the necessary files on macOS and Linux (and other UNIX-derived) operating systems.
尽管在每个操作系统上我们都需要删除(触发重置)的基本信息完全相同,但是根据您的系统,这些信息位于不同的位置。 首先让我们看一下如何在Windows上重置登录令牌,然后重点介绍在macOS和Linux(以及其他UNIX派生的)操作系统上找到必要文件的位置。
Before performing any edits on any operating system, stop your Plex Media Server first.
在任何操作系统上执行任何编辑之前, 请先停止Plex Media Server 。
Windows:删除适当的注册表项 (Windows: Delete the Appropriate Registry Entries)
Open up the Registry Editor by typing “regedit” in the Start Menu search box and run the application. Inside the registry, navigate to Computer\HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server
in the left-hand tree as seen below.
通过在“开始”菜单搜索框中键入“ regedit”打开注册表编辑器,然后运行该应用程序。 在注册表内部,导航到左侧树中的Computer\HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server
,如下所示。
Locate the following four entries:
找到以下四个条目:
- PlexOnlineMail PlexOnlineMail
- PlexOnlineToken PlexOnlineToken
- PlexOnlineUsername PlexOnlineUsername
- PlexOnlineHome (Only some users will have this—if you are not using the Plex Home managed users feature, then you will not have this entry.) PlexOnlineHome(只有某些用户拥有此功能-如果您不使用Plex Home受管用户功能,那么您将没有此条目。)
Right-click on each of these entries and select “Delete”.
右键单击每个条目,然后选择“删除”。
These four entries correspond to your email address, a unique identifier supplies by the central Plex server, your username, and your Plex Home status, respectively. Removing them will force your Plex server to populate them again the next time you attempt to log into your server from your browser.
这四个条目分别与您的电子邮件地址,中央Plex服务器提供的唯一标识符,您的用户名和Plex主页状态相对应。 删除它们将迫使您的Plex服务器在下次您尝试从浏览器登录服务器时再次填充它们。
macOS:编辑Plist文件 (macOS: Edit the Plist File)
On macOS, the same tokens are located inside the com.plexapp.plexmediaserver.plist file, which you’ll find in the ~/Library/Preferences/ directory. The fastest way to edit the file is to open FInder, click Go > Go to Folder in the menu bar, and paste ~/Library/Preferences/
into the box that appears. From there, scroll down until you see the com.plexapp.plexmediaserver.plist file. Be sure to stop your Plex server before performing the following edit.
在macOS上,相同的令牌位于com.plexapp.plexmediaserver.plist文件内,您可以在〜/ Library / Preferences /目录中找到该文件。 编辑文件的最快方法是打开FInder,在菜单栏中单击“转到”>“转到文件夹”,然后将~/Library/Preferences/
粘贴到出现的框中。 从那里向下滚动,直到看到com.plexapp.plexmediaserver.plist文件。 在执行以下编辑之前,请确保停止您的Plex服务器。
Open the file with a text editor and remove the following entries:
使用文本编辑器打开文件并删除以下条目:
<key>PlexOnlineHome</key>
<true/>
<key>PlexOnlineMail</key>
<string>[email protected]</string>
<key>PlexOnlineToken</key>
<string>XXXXXXXXXXXXXXXXXXXXX</string>
<key>PlexOnlineUsername</key>
<string>YourUserName</string>
<key>PlexOnlineHome</key>
<true/>
<key>PlexOnlineMail</key>
<string>[email protected]</string>
<key>PlexOnlineToken</key>
<string>XXXXXXXXXXXXXXXXXXXXX</string>
<key>PlexOnlineUsername</key>
<string>YourUserName</string>
You may not have an entry for “PlexOnlineHome” if you don’t use the Plex Home feature, but you should have an entry for the remaining three tokens. After editing and saving the file, start your Plex Media Server again and log into your server from your browser to reauthenticate yourself.
如果您不使用Plex Home功能,则可能没有“ PlexOnlineHome”条目,但是应该为其余的三个令牌输入一个条目。 编辑并保存文件后,再次启动Plex Media Server,然后从浏览器登录到服务器以重新进行身份验证。
Linux:编辑Preferences.xml文件 (Linux: Edit the Preferences.xml File)
In Linux, you just need to make a little edit to a text-based configuration file—in this case, Plex’s Preferences.xml
. The general location for the file on Linux is $PLEX_HOME/Library/Application Support/Plex Media Server/
, but it is located in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/
for Debian, Fedora, Ubuntu, and CentOS installs. If you have a UNIX-derived OS like FreeBSD or a NAS device, check out the full location list here.
在Linux中,您只需要对基于文本的配置文件进行一些编辑-在这种情况下,就是Plex的Preferences.xml
。 在Linux上,文件的一般位置为$PLEX_HOME/Library/Application Support/Plex Media Server/
,但对于Debian,Fedora,Ubuntu,它位于/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/
。和CentOS安装。 如果您拥有FreeBSD之类的UNIX操作系统或NAS设备, 请在此处查看完整的位置列表 。
Open the Preferences.xml
file in the text editor of your choice. Locate and remove the following entries:
在您选择的文本编辑器中打开Preferences.xml
文件。 找到并删除以下条目:
PlexOnlineHome="1"
PlexOnlineMail="[email protected]"
PlexOnlineToken="XXXXXXXXXXXXXXXXXXXXX"
PlexOnlineUsername="YourUserName"
PlexOnlineHome="1"
PlexOnlineMail="[email protected]"
PlexOnlineToken="XXXXXXXXXXXXXXXXXXXXX"
PlexOnlineUsername="YourUserName"
Save the file and then start your Plex Media Server again. Log into your server from your web browser with your Plex credentials and you should be up and running again.
保存文件,然后再次启动Plex Media Server。 使用Plex凭据从Web浏览器登录服务器,您应该重新启动并运行。
That’s all there is to it. As frustrating as the phantom login problem can be, as soon as you locate the correct file and make a small edit then you’re back in business and able to login with your Plex credentials.
这里的所有都是它的。 幻象登录问题可能会令人沮丧,一旦找到正确的文件并进行较小的编辑,您就可以重新开始工作并能够使用Plex凭据登录。
翻译自: https://www.howtogeek.com/324004/how-to-regain-access-to-your-plex-server-when-youre-locked-out/
plex实现流媒体服务器