`

Unable to set localhost. This prevents creation of a GUID

 
阅读更多

linux启动项目的时候报这个相关的错误,

 

 ERROR [main] Cache.<clinit>(202) | Unable to set localhost. This prevents creation of a GUID. Cause was: centos: centos
java.net.UnknownHostException: centos: centos
        at java.net.InetAddress.getLocalHost(InetAddress.java:1374)

 

原因没有给自己的机器名称做映射,在hosts文件中将127.0.0.1 映射到本机名称centos即可

 

参考:http://www.oecp.cn/hi/wlo_o/blog/1168712

分享到:
评论

相关推荐

    解决linux找不到hostname的处理

    This prevents creation of a GUID. Cause was: java: java: No address associated with hostname java.net.UnknownHostException: java: java: No address associated with hostname at java.net.InetAddress....

    BURNINTEST--硬件检测工具

    - Note: We have seen a report of the Video Playback failing (crash) due to a faulty video codec, ffdshow.ax. If you are using this we suggest you try a different Video file and codec. Release ...

    2-Meter Vertical Dipole Array

    Most commercial 2-meter repeater antennas with gain fall into two categories: collinear arrays and stacked element arrays, with gains ranging ...This prevents the signal from passing over the target area

    Java邮件开发Fundamentals of the JavaMail API

    The creation of protocol-specific providers is not covered in this course because Sun provides a sufficient set for free. Fundamentals of the JavaMail API Page 3 Presented by developerWorks, ...

    squashfs2.2-r2.tar.gz

    There are a large number of options that can be used to control the compression in mksquashfs. By and large the defaults are the most optimum settings and should only be changed in exceptional ...

    Senfore_DragDrop_v4.1

    This is believed to be a bug in the Windows clipboard and a work around hasn't been found yet. * Asynchronous targets appears to be broken in the current release. * When TDropFileTarget....

    微软内部资料-SQL性能优化3

    Used to lock ranges between records in a table to prevent phantom insertions or deletions into a set of records. Ensures serializable transactions. RID A Row Identifier. Used to individually lock a ...

    cisco_router_performance_field_guide.zip

    requirement is to fill a hole in having a single source of information, a place to learn about all of the common technologies used by network engineers today. To provide an outline for those common ...

    Crack&逆向技术.7z

    The idea to write a book like this came to me some time ago when I realized how poorly the topic is covered and how difficult it is to acquire the information necessary to adequately protect software....

    电动水压泵说明书.doc

    zer machine is used for the first time, it's recommended to change the oil in the pump after 100 hours of operation. Use clean diesel oil for the initial fill, then switch to hydraulic oil of ...

    squashfs1.3r3.tar.gz

    -nopad do not pad filesystem to a multiple of 4K -check_data add checkdata for greater filesystem checks -le create a little endian filesystem -be create a big endian filesystem -ef ...

    历年六级完型真题汇总

    A trademark prevents others from using the 77 or a similar word, name, or symbol to take advantage of the recognition and 78 of the brand or to create confusion in the marketplace. 79 registration, a...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    The goal of this guide is to manage this complexity by describing in detail the dos and don'ts of writing C++ code. These rules exist to keep the code base manageable while still allowing coders to ...

    kgb档案压缩console版+源码

    All of the strings in this range will share a growing prefix. Each time the prefix grows, we can output a character. y +--------------------------+ Uncomp- | V ressed | +---------+ p +----------+...

    EEUPDATE刷MAC工具 EEUPDATE v5.30.10.00

    This allows altering the mac addresses of inactive functions of a visible NIC. /PF_MAC_DUMP /NUM=PF_num Display MAC address of a selected Physical Function of the specified NIC. This allows ...

    Proficy Change Mangement

    Proficy Change Management is part of GE Fanuc Automation’s Proficy Software Suite. ...This presentation provides an example of an interaction with a pre-engineered Proficy Change Management system.

    2021-2022计算机二级等级考试试题及答案No.17518.docx

    In this document, we have a collection of questions and answers related to the 2021-2022 Computer Level Two Certification Exam. The content covers a wide range of topics in computer science and ...

    VisualFoxPro6.0中文版命令手册.pdf

    ` is used instead of a specific name, the system prompts the user to enter a name. **Delete a Database:** ```plaintext DELETE DATABASE 数据库名 | ? ``` This command deletes a database from the disk. ...

Global site tag (gtag.js) - Google Analytics