
# 如何解决云服务器中的SAP应用程序不能成功启动？
#### 问题描述
由于在"/etc/hosts"文件中存在一行"127.0.0.1 主机名称 主机名称"，导致在云服务器中安装的SAP应用程序不能成功启动，需登录SAP应用云服务器中修改配置，确保SAP应用软件可以成功启动。
![](https://support.huaweicloud.com/usermanual-sapnw/public_sys-resources/note_3.0-zh-cn.png)
只需在SAP应用软件所在的云服务器中执行此操作，SAP HANA所在的云服务器中不需要执行此操作。
#### 操作步骤
1. 以**root**用户登录SAP应用云服务器。
2. 将配置文件中"manage_etc_hosts: localhost"内容注释。 
   1. 执行以下命令，打开Cloud-Init配置文件"/etc/cloud/cloud.cfg"。 **vi /etc/cloud/cloud.cfg**
      
   
   2. 将配置文件中"manage_etc_hosts: localhost"内容注释后保存。 例如：#manage_etc_hosts: localhost
      ![](https://support.huaweicloud.com/usermanual-sapnw/zh-cn_image_0237148039.png)
      
   
   
   
   
3. 删除"/etc/hosts"文件中127.0.0.1到主机名称的映射信息。 
   1. 执行以下命令，打开"/etc/hosts"文件。 **vi /etc/hosts**
      
   
   2. 删除"/etc/hosts"文件中127.0.0.1到主机名称的映射信息后保存。 ![](https://support.huaweicloud.com/usermanual-sapnw/zh-cn_image_0237148040.png)
      
   
   
   
   
4. 对于已经安装了SAP应用的云服务器，需重新启动SAP应用；对于还未安装SAP应用的云服务器，在做完以上配置之后，执行安装SAP软件操作。
 
