next up previous contents
Next: 設定管理者變數 Up: Keystone Previous: 安裝與設定   Contents

設定 HTTP Server

  1. 設定 HTTP server 的名稱為 controller。
    [root@ip112 ~]# vim /etc/httpd/conf/httpd.conf 
    [root@ip112 ~]# grep ^ServerName /etc/httpd/conf/httpd.conf 
    ServerName controller
  2. 建立 wsgi-keystone.conf 連結檔。
    [root@ip112 ~]# ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
  3. 啟動 httpd 服務,並設定開機啟動。
    [root@ip112 ~]# systemctl enable httpd.service 
    Created symlink from /etc/systemd/system/ 
    to /usr/lib/systemd/system/httpd.service.
    [root@ip112 ~]# systemctl restart httpd.service
    [root@ip112 ~]# systemctl status httpd.service
    ● httpd.service - The Apache HTTP Server
       Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
       Active: active (running) since Wed 2018-05-23 21:26:17 CST; 22s ago
         Docs: man:httpd(8)

De-Yu Wang 2018-12-12