How to Install a Plex Media Server on Alibaba Cloud

Prerequisites

  • You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get $300 — $1200 worth in Alibaba Cloud credits for your new account. If you don’t know about how to setup your ECS instance, you can refer to this tutorial or quick-start guide. Your ECS instance must have at least 2GB RAM and 2 Core processor (2.4 GHz or higher).
  • A domain name registered from Alibaba Cloud. If you have already registered a domain from Alibaba Cloud or any other host, you can update its domain nameserver records.
  • Domain name must be pointed to your Alibaba Cloud ECS’s IP address
  • Access to VNC console in your Alibaba Cloud or SSH client installed in your PC
  • Set up your server’s hostname and create user with root privileges.

Setting Up Your Server

# sudo apt update && sudo apt upgrade

Install Plex

# wget https://downloads.plex.tv/plex-media-server/1.13.5.5332-21ab172de/plexmediaserver_1.13.5.5332-21ab172de_amd64.deb
# sudo dpkg -i plexmediaserver_1.13.5.5332-21ab172de_amd64.deb
# sudo systemctl enable plexmediaserver.service
# sudo systemctl start plexmediaserver.service

Set Up Plex

# ssh your_username@alibaba_cloud_ecs_ip_address -L 8888:localhost:32400

Set Up Firewalls and Ports

Install Nginx

# sudo apt-get install -y nginx
# sudo systemctl start nginx
# sudo systemctl enable nginx

Install Node.js:

# sudo apt-get install nodejs

Set Up Reverse Proxy

# sudo nano /etc/nginx/conf.d/Plex.conf
server {
listen 80;
listen [::]:80;
server_name softpedia.xyz; location / {
proxy_pass http://localhost:32400/;
}
}
# sudo systemctl restart nginx
# cd ~
# mkdir -p plex-media/movies && mkdir plex-media/television

Install software-properties-common

# sudo apt-get install software-properties-common -y

Install SSL Certificate

# sudo apt-get update
# sudo apt-get install software-properties-common
# sudo add-apt-repository ppa:certbot/certbot
# sudo apt-get update
# sudo apt-get install python-certbot-nginx
# sudo certbot --nginx -d softpedia.xyz
# sudo systemctl restart nginx

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Developing Complete Authorization Modules with AWS Lambda & Go & PostgreSQL & Event-Driven SQS…

A Comprehensive Look at Functional Programming (FP)

Setting Up a Github Repository

Everything You Need to Know About Software Translation

What’s the Deal with SQL vs NoSQL Databases?

Photoshopped If You Give a Mouse a Cookie holding a database

Getting started in Augmented Reality (AR) using Unity

MR AR VR Image

OUTPUT FOR THE WEEK: CHAPTER 8 — PROJECT QUALITY MANAGEMENT

Pancakeswap Listing ✅

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Produce and consume messages from a Kafka topic using docker

Get started with OpenSearch — The really quick guide.

IDP Brokering from Keycloak to Google, using SAML from #greptail