简体   繁体   English

如何更改我的openshift应用程序中的现有环境变量?

[英]how to change existing environment variables in my openshift application?

I have an application hosted on openshift , with a mysql database, now as per features, they have mysql username, password in env variables, but i want to change the evn variable for mysql password as they show the password, as soon as we login, is there any way to change, i googled a lot, but links were either 404 or the answers were pointing to 404 links. 我有一个托管在openshift上的应用程序,带有mysql数据库,现在根据功能,它们具有mysql用户名,env变量中的密码,但是我想在登录后立即更改mysql密码的evn变量,因为它们显示了密码,有什么方法可以改变,我在Google上搜索了很多,但是链接要么是404,要么答案指向404链接。 would appropriate an answer as soon as possible...here are some of the links which i tried link one link two and 404 link 会尽快提供适当的答案...以下是我尝试链接的两个 链接:一个 链接两个 和404链接

You can use the rhc env set command to add/update your environment variables, but be careful as those env variables can be used within your application, and changing them can cause login issues with your database etc 您可以使用rhc env set命令添加/更新您的环境变量,但是要小心,因为这些env变量可以在您的应用程序中使用,并且更改它们可能会导致数据库登录问题等。

https://developers.openshift.com/en/managing-environment-variables.html https://developers.openshift.com/en/managing-environment-variables.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM