How to Install a Plex Media Server on Alibaba Cloud

Prerequisites

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

--

--

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