Beberapa java pengoptimuman untuk menambah dalam red5.sh :
eksport JAVA_OPTS =”-Xrs -Xms128M -Xmx256M -Dsun.rmi.dgc.client.gcInterval=300000 -Dsun.rmi.dgc.server.gcInterval=360000 -Djava.net.preferIPv4Stack=true -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Xverify:Tiada seorang pun”
Assuming red5 was installed in /opt/red5/dist admin will often need to restart it or check if it’s running.
Make sure Red5 restarts: restart.sh
#!/bin/bash
#Restart the process
#First see if running
PID=`ps -eo ‘tty pid args’ | grep ‘red5’ | grep -v grep | grep -v restart | tr -s ‘ ‘ | cut -f2 -d ‘ ‘`
CD /opt/red5/dist
Jika [ -z “$PID” ]
kemudian
#not running
echo “Red5 was not running at `date`” >> /opt/red5/dist/run-restart.log
lain
echo “Red5: $PID”
#shutdown
/opt/red5/dist/red5-shutdown.sh
sleep 6
#pastikan
kill $PID >> null
sleep 2
Fi
#mula
/opt/RED5/Dist/RED5.SH >> /opt/red5/dist/red5.log &
echo “On request restarted Red5 at `date`” >> /opt/red5/dist/run-restart.log
Mare sure Red5 process is running, if not start it: running.sh
#!/bin/bash
#set environment
PID=`ps -eo ‘tty pid args’ | grep ‘red5’ | grep -v grep | grep -v running | tr -s ‘ ‘ | cut -f2 -d ‘ ‘`
Jika [ -z “$PID” ]
kemudian
#Restart the process
CD /opt/red5/dist
/opt/RED5/Dist/RED5.SH >> /opt/red5/dist/red5.log &
echo “Restarted Red5 at `date`” >> /opt/red5/dist/run-restart.log
lain
#do nothing
echo “Red5 is already running with PID=$PID at `date`” >> /opt/red5/dist/run-checked.log
Fi
Red5 Services
Red5 Hosting
Red5 installation on VPS & Dedicated Servers (Linux / Windows)