问题1:
user@openmeetings:~$ sudo /etc/init.d/red5 start
[sudo] password for user:
Starting Red5 flash streaming server: red5start-stop-daemon: invalid option -- 'e'
Try 'start-stop-daemon --help' for more information.
user@openmeetings:~$ more /etc/init.d/red5 start
::::::::::::::
/etc/init.d/red5
::::::::::::::
#! /bin/sh
#
# red5 red5 initscript
#
# Author: Simon Eisenmann .
#
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Red5 flash streaming server"
NAME=red5
RED5_HOME=/opt
DAEMON=$RED5_HOME/$NAME.sh
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
# Read config file if it is present.
if [ -r /etc/default/$NAME ]
then
./etc/default/$NAME
fi
#
# Function that starts the daemon/service.
#
d_start() {
start-stop-daemon -start -c nobody -pidfile $PIDFILE -chdir $RED5_HOME -background -make -pidfile -exec $DAEMON
}
#上面这条语句是错误的
# Function that stops the daemon/service.
#
d_stop() {
start-stop-daemon -stop -quiet -pidfile $PIDFILE -name java rm -f $PIDFILE
}
#这条也错了。具体看回答1。
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
exit 0
start: No such file or directory
user@openmeetings:~$
回答1:
invalid option -- 'e':start-stop-daemon命令中长选项要用两个--开头。
d_start和d_stop函数中调用的start-stop-daemon命令用错了。-exec选项要改成--exec,其他选项貌似都有这个问题。shell发现选项是一个-开头,于是认为是短选项,-exec就被识别为 -e ,自然就报错了。
start-stop-daemon命令中遇到长选项(单个选项长度超过一个字节的),前面全改成两个--。-background,-make等都要改,-c就不用。
Starting Red5 flash streaming server: red5start-stop-daemon: --start needs --exec or --startas
--pidfile和--start都需要额外参数,如果有--exec而没指定--start的参数,那么--start可以用--exec的参数。
而你的--pidfile后面没有参数,因而--exec被当作--pidfile的参数,导致--start没参数,又没有--exec选项了。
--make --pidfile ?是这里吧?
--pidfile和--start都需要额外参数,如果有--exec而没指定--start的参数,那么--start可以用--exec的参数。
而你的--pidfile后面没有参数,因而--exec被当作--pidfile的参数,导致--start没参数,又没有--exec选项了。
我把--make--pidfle改成--make-pidfile,就成了。
user@openmeetings:~$ sudo /etc/init.d/red5 start
Starting Red5 flash streaming server: red5.
user@openmeetings:~$
问题2:
以为成了。访问http://x.x.x.x:5080/openmeetings/,不成:
Autoconnect
NetConnection.Call.Failed
回答2:
没安装当然是这个提示。
Could not Create File, Permission set? /opt/webapps/openmeetings/conf/
| ubuntu 10.4 安装openmeetings 1.7< 上页 | 下页 >用.htaccess修改apache和php.ini配置 |
|---|





