⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.sh

📁 RESIN 3.2 最新源码
💻 SH
字号:
#!/bin/shAPXS=RESIN_HOME=DEBUG=usage() {  echo "usage: install.sh [flags]"  echo "flags:"  echo "  -help                    : this usage message"  echo "  -conf <conf>             : apache config"  echo "  -apache_dir <dir>        : apache dir"  echo "  -libexec <dir>           : libexec directory"  echo "  -resin_home <resin_home> : resin home"}DEBUG=while test "$#" -ne 0 ; do    case "$1" in    # Documented arguments    -h | -help)       SHOW_HELP=true; shift;;    -conf) CONF="$2"; shift 2;;    -apache_dir) APACHE_DIR="$2"; shift 2;;    -libexec) LIBEXECDIR="$2"; shift 2;;    -resin_home) RESIN_HOME="$2"; shift 2;;    *)   shift ; break;    esacdoneif test ! -r "$CONF"; then  echo "Can't find valid Apache configuration \"$CONF\""  exit 1fi#if test -d "$LIBEXECDIR"; then#  echo cp mod_caucho.so $LIBEXECDIR#  cp mod_caucho.so $LIBEXECDIR#elif test -z "$LIBEXECDIR"; then#  LIBEXECDIR=`pwd`#else#  echo "Can't find valid Apache module directory in \"$LIBEXECDIR\""#  exit 1#fiif test ! -d "$APACHE_DIR"; then  APACHE_DIR="/tmp"fiif test -d "$APACHE_DIR/conf.d"; then  if test ! -r "$APACHE_DIR/conf.d/resin.conf"; then    cat >> $APACHE_DIR/conf.d/resin.conf <<EOF## mod_caucho Resin Configuration#LoadModule caucho_module $LIBEXECDIR/mod_caucho.soResinConfigServer localhost 6800CauchoConfigCacheDirectory $APACHE_DIRCauchoStatus yesEOF  fielse  grep mod_caucho $CONF >/dev/null 2>/dev/null  if test "$?" != 0; then    cat >>$CONF <<EOF## mod_caucho Resin Configuration#LoadModule caucho_module $LIBEXECDIR/mod_caucho.soResinConfigServer localhost 6800CauchoConfigCacheDirectory $APACHE_DIRCauchoStatus yesEOFfifi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -