OVM虚拟化平台安装成功后如何配置
更新:HHH   时间:2023-1-7


这篇文章主要为大家展示了“OVM虚拟化平台安装成功后如何配置”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“OVM虚拟化平台安装成功后如何配置”这篇文章吧。

平台配置方法

1、自动化配置

在/opt/esage/config/esage.properties这个路径文件 里含有

192.168.0.125的位置需要修改,修成了本地实际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、如果自动化配置没有生效,需要手工配置:

ovm-UI配置文件的路径为:

在/var/www/html/ui/index.html这个路径文件里,含有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 ~]#

修改完配置文件后重启一下两个服务

[root@localhost ~]# systemctl restart esage-tomcat.service
[root@localhost ~]# systemctl restart httpd.service

此时,可以重新打开登陆页面,进行登陆!

以上是“OVM虚拟化平台安装成功后如何配置”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注天达云行业资讯频道!

返回云计算教程...