OVM虚拟化平台安装成功后初始化配置方法!
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
對(duì)于首安裝OVM用戶(hù),在OVM平臺(tái)安裝成功后,第一次登陸出現(xiàn)無(wú)法登陸的狀況!?
OVM管理平臺(tái)在成功安裝后,必需進(jìn)行admin初始化設(shè)置,方能成功登陸!
首先,在你管理平臺(tái)的ssh,就是不要用root登錄,直接用admin登錄,
密碼admin,或者你在root下面執(zhí)行su - admin也可以。初始化你的平臺(tái)系統(tǒng)。
?
平臺(tái)配置方法
1、自動(dòng)化配置
?
在/opt/esage/config/esage.properties這個(gè)路徑文件 里含有
192.168.0.125的位置需要修改,修成了本地實(shí)際IP.
[root@localhost ~]# cat /opt/esage/config/esage.properties
[datacenter]
esage.database.host = 127.0.0.1
esage.rabbitmq.username = guest
esage.rabbitmq.host = 127.0.0.1
esage.appstore.templateLocation = 192.168.0.125:/vmimage
esage.appstore.localtemplatePath = /opt/templatelibrary/
esage.rabbitmq.password = guest
esage.datacenter.id = Default
esage.rabbitmq.port = 5672
esage.redis.host = 127.0.0.1
esage.redis.port = 6379
esage.event.identity = m_user
esage.platform.api.location = http://192.168.0.125:8009/api
esage.event.credential = m_password
[platform]
esage.platform.sessionTimeout = 60
esage.database.user = esage
esage.database.password = esage_2020@
esage.database.host = 127.0.0.1
esage.platform.mail.server = 127.0.0.1
esage.platform.mail.user = ovm_sf@51ovm.com
esage.platform.mail.password = none
esage.auth.module = esage
esage.rabbitmq.username = guest
esage.rabbitmq.password = guest
esage.rabbitmq.port = 5672
esage.redis.host = 127.0.0.1
esage.redis.port = 6379
esage.platform.api.location = http://192.168.0.125:8009/api
esage.rabbitmq.host = 127.0.0.1
2、如果自動(dòng)化配置沒(méi)有生效,需要手工配置:
?
ovm-UI配置文件的路徑為:
在/var/www/html/ui/index.html這個(gè)路徑文件里,含有192.168.0.125的位置需要全部修改成本地IP地址。
[root@localhost ~]# cat /var/www/html/ui/index.html
<!doctype html>
<html>
<head>
? <meta charset="utf-8">
? <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
? <title></title>
? <meta name="description" content="">
? <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
? <link rel="stylesheet" href="./styles/fonts.css"/>
? <!--<link rel="stylesheet" href="./styles/react-select.css"/>-->
</head>
<body>
<!--[if lt IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
? your browser</a> to improve your experience.</p>
<![endif]-->
<div id="content">
</div>
<script>
? __REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__
</script>
<script>
? const global_uploadHost = 'http://192.168.0.125:8009';
? const global_host = 'http://192.168.0.125/api';
</script>
? <script type="text/javascript" src="assets/vendor.js"></script>
? <script type="text/javascript" src="assets/main.js"></script>
</body>
</html>
[root@localhost ~]#
修改完配置文件后重啟一下兩個(gè)服務(wù)
[root@localhost ~]# systemctl restart esage-tomcat.service
[root@localhost ~]# systemctl restart httpd.service
?
此時(shí),可以重新打開(kāi)登陸頁(yè)面,進(jìn)行登陸!
?
轉(zhuǎn)載于:https://my.oschina.net/ovm/blog/794377
總結(jié)
以上是生活随笔為你收集整理的OVM虚拟化平台安装成功后初始化配置方法!的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 像素魂斗罗2闪退怎么办 闪退的解决方法
- 下一篇: 我的世界萤石灯怎么做 莹石灯如何制作