亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    CentOS7下使用 Seafile安裝搭建私有云盤

    一、系統(tǒng)環(huán)境

    系統(tǒng):CentOS7-1708
    IP地址:192.168.159.33

    二、安裝seafile

    [root@seafile ~]# yum -y install epel-release
    [root@seafile ~]# rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
    [root@seafile ~]# yum -y install Python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel
    [root@seafile ~]# yum -y install python-pip
    [root@seafile ~]# pip install –upgrade pip
    [root@seafile ~]# pip install pillow moviepy
    [root@seafile ~]# yum install -y mariadb-server ##安裝數(shù)據(jù)庫
    [root@seafile ~]# systemctl enable mariadb ##設(shè)置數(shù)據(jù)庫開機(jī)啟動
    [root@seafile ~]# systemctl start mariadb ##啟動數(shù)據(jù)庫
    [root@seafile ~]# mysql_secure_installation ##為數(shù)據(jù)庫設(shè)置密碼
    [root@seafile ~]# wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.3_i386.tar.gz ##下載seafile軟件包
    [root@seafile ~]# tar -zxf seafile-server_6.2.3_x86-64.tar.gz ##解壓軟件包
    [root@seafile ~]# mkdir -p seafile/installed/ ##創(chuàng)建安裝包存放位置
    [root@seafile ~]# mv seafile-server_6.2.3_x86-64.tar.gz seafile/installed/
    [root@seafile ~]# mv seafile-server-6.2.3/ seafile/
    [root@seafile ~]# cd seafile/
    [root@seafile seafile]# cd seafile-server-6.2.3/
    [root@seafile seafile-server-6.2.3]# ./setup-seafile-mysql.sh ##會要填很多信息,按要求填就可以了

    三、設(shè)置防火墻、selinux

    設(shè)置SELinux
    [root@seafile ~]#vi /etc/selinux/config
    將SELINUX=enforcing改為SELINUX=disabled
    使selinux立即生效
    [root@seafile ~]#setenforce 0
    添加防火墻允許通行端口
    [root@seafile ~]#firewall-cmd –zone=public –add-port=8000/tcp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=8082/tcp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=3306/tcp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=10001/tcp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=12001/tcp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=8000/udp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=8082/udp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=3306/udp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=10001/udp –permanent
    [root@seafile ~]#firewall-cmd –zone=public –add-port=12001/udp –permanent
    [root@seafile ~]#firewall-cmd –reload ##加載防火墻規(guī)則使其立即生效
    [root@seafile ~]#firewall-cmd –zone=public –list-ports ##查看放行端口

    四、啟動seafile

    啟動seafile
    [root@seafile seafile-server-6.2.3]# ./seafile.sh start # 啟動 Seafile 服務(wù)
    [root@seafile seafile-server-6.2.3]# ./seahub.sh start # 啟動 Seahub 網(wǎng)站 (默認(rèn)運(yùn)行在8000端口上),可指定端口
    設(shè)置開機(jī)啟動(ExecStart ExecStop替換為相應(yīng)安裝位置)
    [root@seafile ~]#vi /usr/lib/systemd/system/seafile.service
    [Unit]
    Description=Seafile Service
    After=network.target
    After=mariadb.service
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/seafile/seafile/seafile.sh start
    ExecStart=/seafile/seafile/seahub.sh start
    #ExecStop=/seafile/seafile/seafile.sh stop
    #ExecStop=/seafile/seafile/seahub.sh stop
    [Install]
    WantedBy=multi-user.target
    [root@seafile ~]#systemctl enable seafile
    [root@seafile ~]#systemctl start seafile
    [root@seafile ~]#systemctl status seafile

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號