zoukankan      html  css  js  c++  java
  • lede install unifi controller


    requirement: sdb3 should be formated as ext4, DO not use f2fs/NTFS/exFAT.

    debootstrap --arch=amd64 stretch /mnt/sdb3/debian http://deb.debian.org/debian

    mount -o bind /proc /mnt/sdb3/debian/proc
    mount -o bind /sys /mnt/sdb3/debian/sys
    mount -o bind /dev /mnt/sdb3/debian/dev

    chroot /mnt/sdb3/debian /bin/bash
    apt update
    apt install mongodb
    apt install software-properties-common
    add-apt-repository "deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti"
    apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
    apt update
    apt install unifi

    chroot /mnt/sdb3/debian /bin/bash

    /etc/rc.local add content before exit 0:

    mount -o bind /proc /mnt/sdb3/debian/proc
    mount -o bind /sys /mnt/sdb3/debian/sys
    mount -o bind /dev /mnt/sdb3/debian/dev

    chroot /mnt/sdb3/debian /bin/bash service mongodb start
    chroot /mnt/sdb3/debian /bin/bash service unifi start

  • 相关阅读:
    终于回来了&&邮递员送信
    发射站
    黑匣子
    利维坦——(1)
    预告
    整除(水题)
    BZOJ054_移动玩具_KEY
    BZOJ4034_树上操作_KEY
    树链剖分学习&BZOJ1036
    BZOJ1208_宠物收养所_KEY
  • 原文地址:https://www.cnblogs.com/maintell/p/9373230.html
Copyright © 2011-2022 走看看