<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # OpenStackSwift 下安裝 從專業版服務器的 2.0.5 版本開始,Seafile 可以使用兼容 S3 的云存儲(比如 OpenStack/Swift)作為后端。這篇文檔將以使用 Swift 為例。 ### 準備工作 首先您需要為 Swift 啟用 S3 的模擬中間件。有關說明可以參考以下鏈接: - [http://www.buildcloudstorage.com/2011/11/s3-apis-on-openstack-swift.html](http://www.buildcloudstorage.com/2011/11/s3-apis-on-openstack-swift.html) - [http://docs.openstack.org/grizzly/openstack-compute/admin/content/configuring-swift-with-s3-emulation-to-use-keystone.html](http://docs.openstack.org/grizzly/openstack-compute/admin/content/configuring-swift-with-s3-emulation-to-use-keystone.html) 成功安裝設置 S3 中間件后,您就可以用任何 S3 的客戶端訪問它了。在 Swift 中,訪問的 key id 作為用戶名 secret key 作為用戶的密碼。下一步您要做的就是為 Seafile 創建 buckets。使用 Python 的 boto 庫您可以這樣做: ~~~ import boto import boto.s3.connection connection = boto.connect_s3( aws_access_key_id='swifttest:testuser', aws_secret_access_key='testing', port=8080, host='swift-proxy-server-address', is_secure=False, calling_format=boto.s3.connection.OrdinaryCallingFormat()) connection.create_bucket('seafile-commits') connection.create_bucket('seafile-fs') connection.create_bucket('seafile-blocks') ~~~ ### 修改 seafile.conf 文件 將下面幾行追加到 `seafile-data/seafile.conf` 文件中 ~~~ [block_backend] name = s3 bucket = seafile-blocks key_id = swifttest:testuser key = testing host = <swift-proxy-server-address>:8080 path_style_request = true memcached_options = --SERVER=localhost --POOL-MIN=10 --POOL-MAX=100 [commit_object_backend] name = s3 bucket = seafile-commits key_id = swifttest:testuser key = testing host = <swift-proxy-server-address>:8080 path_style_request = true memcached_options = --SERVER=localhost --POOL-MIN=10 --POOL-MAX=100 [fs_object_backend] name = s3 bucket = seafile-fs key_id = swifttest:testuser key = testing host = <swift-proxy-server-address>:8080 path_style_request = true memcached_options = --SERVER=localhost --POOL-MIN=10 --POOL-MAX=100 ~~~ 為了提高性能,Seafile 會在 memcached 中緩存小的 objects。所以強烈建議您安裝并且運行 memcached。最好是為 Seafile 提供一個專門的 memcached 實例并為其分配 128MB 的內存空間。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看