OMFLOW Doc
搜索文档…
變更資料中心網址
伺服器會因為各項包含但不限於組織異動、設備架構異動、伺服器異常等因素,導致需要更換憑證、連接埠、網域、IP等等,該篇文章主要是說明哪些地方需要進行修改,才能讓資料中心正常運作。

Windows

修改httpd.conf

檔案路徑:C:\Program Files\OMFLOW Server\Apache24\conf\httpd.conf
修改下列兩段設定中的<IP>與<Port>
1
# Listen: Allows you to bind Apache to specific IP addresses and/or
2
# ports, instead of the default. See also the <VirtualHost>
3
# directive.
4
#
5
# Change this to Listen on specific IP addresses as shown below to
6
# prevent Apache from glomming onto all bound IP addresses.
7
#
8
#Listen 12.34.56.78:80
9
Listen <IP>:<Port>
Copied!
1
# ServerName gives the name and port that the server uses to identify itself.
2
# This can often be determined automatically, but we recommend you specify
3
# it explicitly to prevent problems during startup.
4
#
5
# If your host doesn't have a registered DNS name, enter its IP address here.
6
#
7
ServerName <IP>:<Port>
Copied!

修改settings.py

檔案路徑:C:\Program Files\OMFLOW Server\omflow\omflow\settings.py
修改LOCAL_IP以及LOCAL_PORT
1
#omflow type(server/collector)
2
OMFLOW_TYPE = "server"
3
#local info
4
LOCAL_IP = "127.0.0.1"
5
LOCAL_PORT = "80"
6
UNIQUE_ID = ""
7
LOCAL_PROTOCOL = "http"
Copied!

重啟服務

更新collector報到位置

重啟後登入OMFLOW
首頁 > 系統設定 > 系統設定
更新完成後,所有已經報到過的收集器,都會修改報到對象至新的位置。

Linux

ubuntu

修改django.conf

檔案路徑:/etc/apache2/sites-available/django.conf
修改下列兩段設定中的<IP>與<Port>
1
<IfModule mod_ssl.c>
2
<VirtualHost <IP>:<Port> >
3
DocumentRoot /opt/omflow/server
4
5
Alias /static /opt/omflow/server/staticfiles
6
Copied!

修改settings.py

檔案路徑:/opt/omflow/server/omflow/settings.py
修改LOCAL_IP以及LOCAL_PORT
1
#omflow type(server/collector)
2
OMFLOW_TYPE = "server"
3
#local info
4
LOCAL_IP = "<IP>"
5
LOCAL_PORT = "<Port>"
6
LOCAL_PROTOCOL = "http"
7
Copied!

重啟服務

1
systemctl stop omflow_server
2
systemctl start omflow_server
Copied!

更新collector報到位置

重啟後登入OMFLOW
首頁 > 系統設定 > 系統設定
更新完成後,所有已經報到過的收集器,都會修改報到對象至新的位置。

centos

修改httpd.conf

檔案路徑:/etc/httpd/conf/httpd.conf
修改下列兩段設定中的<IP>與<Port>
1
# Change this to Listen on specific IP addresses as shown below to
2
# prevent Apache from glomming onto all bound IP addresses.
3
#
4
#Listen 12.34.56.78:80
5
Listen <IP>:<Port>
Copied!

修改django.conf

檔案路徑:/etc/httpd/conf.d/django.conf
修改下列兩段設定中的<IP>與<Port>
1
<IfModule mod_ssl.c>
2
<VirtualHost <IP>:<Port> >
3
DocumentRoot /opt/omflow/server
4
5
Alias /static /opt/omflow/server/staticfiles
6
Copied!

修改settings.py

檔案路徑:/opt/omflow/server/omflow/settings.py
修改LOCAL_IP以及LOCAL_PORT
1
#omflow type(server/collector)
2
OMFLOW_TYPE = "server"
3
#local info
4
LOCAL_IP = "<IP>"
5
LOCAL_PORT = "<Port>"
6
LOCAL_PROTOCOL = "http"
7
Copied!

重啟服務

1
systemctl stop omflow_server
2
systemctl start omflow_server
Copied!

更新collector報到位置

重啟後登入OMFLOW
首頁 > 系統設定 > 系統設定
更新完成後,所有已經報到過的收集器,都會修改報到對象至新的位置。