centos7 + mysql + lamp + glpi

1. virtualbox install centos7

download: http://mirrors.163.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso

then install with virtualbox;

Note: virtual box use NAT for default network type, change to Bridge mode, otherwise host and virtual cannot ping.

2. config centos7 network

ref: http://blog.csdn.net/crxmai/article/details/49767673

3. install mysql

ref: http://blog.csdn.net/sinat_36384705/article/details/71083032

yum install mysql-community-server mysql-devel

4. install lamp

ref: https://www.cnblogs.com/me80/p/7218883.html

note: default php is 5.4, need to upgrade to 5.6, ref : http://blog.csdn.net/u010738364/article/details/75635334

5. install glpi

ref: http://glpi-project.org/spip.php?article61

ref: http://www.mamicode.com/info-detail-1885758.html

7. install mosquito

ref: http://blog.csdn.net/wangji163163/article/details/50547104

resolve error: https://www.jianshu.com/p/6063e125540b+

log_progress_msg() {
   echo $@
}
log_daemon_msg () {
    # Dummy function to be replaced by LSB library.
    echo $@
}

log_end_msg () {
    # Dummy function to be replaced by LSB library.
    if test "$1" != "0"; then
      echo "Error with $DESCRIPTION: $NAME"
    fi
    return $1
}

status_of_proc () 
{ 
    local pidfile daemon name status OPTIND;
    pidfile=;
    OPTIND=1;
    while getopts p: opt; do
        case "$opt" in 
            p)
                pidfile="$OPTARG"
            ;;
        esac;
    done;
    shift $(($OPTIND - 1));
    if [ -n "$pidfile" ]; then
        pidfile="-p $pidfile";
    fi;
    daemon="$1";
    name="$2";
    status="0";
    pidofproc $pidfile $daemon > /dev/null || status="$?";
    if [ "$status" = 0 ]; then
        log_success_msg "$name is running";
        return 0;
    else
        if [ "$status" = 4 ]; then
            log_failure_msg "could not access PID file for $name";
            return $status;
        else
            log_failure_msg "$name is not running";
            return $status;
        fi;
    fi
}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值