zoukankan      html  css  js  c++  java
  • Git服务器搭建

    安装Apache组件

    # apt install apache2
    

    安装Git组件

    # apt install git git-core
    # mkdir git
    # cd git
    # chown -R www-data:www-data .
    # git clone https://git.openstack.org/openstack/openstack-ansible-openstack_hosts openstack/openstack-ansible-openstack_hosts
    

    Apache配置

    # vim /etc/apache2/sites-available/000-default.conf
    ### 添加如下内容
    <VirtualHost *:80>
            ServerName git.openstack.org
            DocumentRoot /root/git
            SetEnv GIT_HTTP_EXPORT_ALL
            SetEnv GIT_PROJECT_ROOT /root/git
            ScriptAlias / /usr/libexec/git-core/git-http-backend/
    
            <Directory "/usr/lib/git-core*">
                    Options ExecCGI Indexes
                    Order allow,deny
                    Allow from all
            </Directory>
    </VirtualHost>
    # a2enmod cgid
    # systemctl restart apache2.service
    
  • 相关阅读:
    RLP
    Merkle Patricia Tree (MPT) 树详解
    Patricia Tree
    Merkle Tree学习
    mongodb 范围查找
    mongodb _id 组成
    mongodb 时间戳转_id
    mongdi db _id 转时间戳
    js中的filter
    js中的filter
  • 原文地址:https://www.cnblogs.com/silvermagic/p/7665854.html
Copyright © 2011-2022 走看看