How to Upgrade Red5 Pro Server
The process for upgrading your Red5 Pro server is pretty straight forward.
Assuming that you set up your server per installing Red5 Pro server on linux, there are just a few basic steps needed to update your server.
- Copy the new Red5 Pro Server Distribution to your server. If you are using FTP, you will probably need to copy this up to the /tmp/ directory.
- Move the zip file to the same directory as your current installation (for example, /usr/local/), and unzip it.
- Copy your web applications from your current Red5 Pro directory to the new one. If you have modified any configuration files, then make the same edits in the new distribution's configuration files.
- If you have a professional license, then copy your red5pro LICENSE.KEY file from your current Red5 Pro Server directory to the new one.
- Stop the red5pro service (
sudo /etc/init.d/red5pro stop- or
sudo ./red5-shutdown.shif you are not running Red5 Pro as a service). Note: it takes approximately 30 seconds for the server to fully shut down.
- Rename (or delete) the old server directory.
- Rename the new server directory to the original folder name (e.g., red5pro).
- Start the red5pro service (
sudo /etc/init.d/red5prostart or
sudo ./red5.sh &if you are not running Red5 Pro as a service).
- Verify your server is running by navitaging to
http://< your server ip >:5080. You can verify you are running the new release by the version number listed in the top-left corner of the screen.
Handy Script for Copying Over Config Files Between Releases
In order to use the following script:
- Rename your existing red5pro folder to bak.red5pro (
sudo mv red5pro bak.red5pro)
- Copy and unzip the new distribution into the same directory where the original red5pro folder was (e.g.
/usr/local/). After it is unzipped, rename that directory to red5pro
- Create a file called "upgradered5pro.sh" in the same directory that contains your red5pro and bak.red5pro directories (
sudo vi upgradered5pro.sh) and copy and paste the script below.
- Make the file executable (
sudo chmod +x upgradered5pro.sh)
- Run the copy script (`sudo ./upgradered5pro.sh')
This includes some of the more commonly-modified files (for SSL, S3 and FLV post-processing, and some others). To maintain this script on your machine, make sure to add a line in for each additional file that you modify.
NOTE: Release 3.0 has modified some of the default files, which have been commented out of the following script. For SSL, you will need to modify
#!/bin/bash #SSL files #sudo cp bak.red5pro/conf/red5.properties red5pro/conf/ #sudo cp bak.red5pro/conf/jee-container.xml red5pro/conf #S3 and FLV Conversion files sudo cp bak.red5pro/conf/red5-common.xml red5pro/conf sudo cp bak.red5pro/webapps/live/WEB-INF/red5-web.xml red5pro/webapps/live/WEB-I NF/ sudo cp bak.red5pro/conf/cloudstorage-plugin.properties red5pro/conf/ #Other Configs sudo cp bak.red5pro/conf/hlsconfig.xml red5pro/conf/ #sudo cp bak.red5pro/conf/webrtc-plugin.properties red5pro/conf/ sudo cp red5pro/LICENSE.KEY red5pro/ sudo cp bak.red5pro/red5.sh red5pro/