next up previous contents
Next: 確認 Swift Storage 安裝成功 Up: 物件儲存 Swift Previous: Swift 除錯   Contents

配置 Swift Object Storage Proxy 服務

  1. 設定檔更新。
    [root@kvm4 ~(keystone_admin)]# openstack-config --set /etc/swift/proxy-server.conf \
    filter:authtoken admin_tenant_name services
    [root@kvm4 ~(keystone_admin)]# openstack-config --set /etc/swift/proxy-server.conf \
    filter:authtoken admin_host 192.168.122.4
    [root@kvm4 ~(keystone_admin)]# openstack-config --set /etc/swift/proxy-server.conf \
    filter:authtoken admin_user swift
    [root@kvm4 ~(keystone_admin)]# openstack-config --set /etc/swift/proxy-server.conf \
    filter:authtoken admin_password 123qwe
    
  2. 啟動服務並設定開機自動啟動。
    [root@kvm4 ~(keystone_admin)]# /etc/init.d/memcached start
    Starting memcached:                                [  OK  ]
    [root@kvm4 ~(keystone_admin)]# chkconfig memcached on
    [root@kvm4 ~(keystone_admin)]# /etc/init.d/openstack-swift-proxy start
    Starting openstack-swift-proxy:                    [  OK  ]
    [root@kvm4 ~(keystone_admin)]# chkconfig openstack-swift-proxy on
    



2015-12-29