`
youyu4
  • 浏览: 440196 次
社区版块
存档分类
最新评论

Can't get host name

 
阅读更多

Can't get host name,这是启动服务时遇到的一个问题




 
 

 

问题原因:

因为/etc/hosts下设置的hostname与系统的hostname不一致

 

 

检查和修改方法

1. 用hostname命令,查看系统的hostname

2. 修改/etc/hosts文件,加上

127.0.0.1   hostname

3. 重启服务

 

 

其他与hostname相关的知识

 http://www.cnblogs.com/kerrycode/p/3595724.html 
  • 大小: 25 KB
分享到:
评论

相关推荐

    宏电DTU的DDP协议GPRS DSC中心源代码DEMO SDK

    宏电DTU(Data Transfer Unit)是一款用于远程数据传输的设备,主要应用于物联网(IoT)和M2M(Machine to Machine)通信场景。DDP(Data Distribution Protocol)是宏电DTU所采用的一种专有协议,用于在GPRS(General...

    ap6212a0_a33_sc3817r_神舟验证版本_借用nvram_ap6210这个配置文件_20170626_1834没有外层目录.7z

    [ 3.175402] Bluetooth: get rtl8723bs rtl8723bs_bt_host_wake gpio failed [ 3.953017] Bluetooth: RFCOMM TTY layer initialized [ 3.958456] Bluetooth: RFCOMM socket layer initialized [ 3.964183] ...

    jboss中access 日志的配置

    %h - Remote host name (or IP address if resolveHosts is false) %H - Request protocol %l - Remote logical username from identd (always returns '-') %m - Request method (GET, POST, etc.) %p - Local...

    Java邮件开发Fundamentals of the JavaMail API

    be protocol agnostic, you can't overcome the limitations of the underlying protocols. If a capability isn't supported by a chosen protocol, the JavaMail API doesn't magically add the capability on ...

    SSH客户端操作Linux

    You can get a public key‘s fingerprint by running % ssh-keygen -F publickey.pub on the keyfile. Are you sure you want to continue connecting (yes/no)? Yes Host key saved to /home/jsmith/.ssh2/host...

    端口查看工具

    of cports.exe, and CurrPorts will automatically use it to get the country/city information for every remote IP address. * Version 2.02: o CurrPorts now displays a simple error message if it fails ...

    Qemu-1.0.1 for windows

    -usbdevice name add the host or guest USB device 'name' -device driver[,prop[=value][,...]] add device (based on driver) prop=value,... sets driver properties use -device ? to print all possible ...

    Docker Containers_Build and Deploy with Kubernetes,Flannel,Cockpit,and Atomic

    To get started, you don’t need to know anything about Docker or containeriza- tion; you can treat this book as your introduction to Docker. However, this book is also intended to offer an entry into ...

    C# 邮件服务器

    the host name is required when set bindings. eg. bind smtp service to smtp.[your.domain] + IPAddress.Any [your vitural server]>system>service>relay, 'send email using DNS' and set at least a local ip...

    gun tar for windows

    -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-...

    qemu-0.13.0(编译过全处理器支持)

    -usbdevice name add the host or guest USB device 'name' -device driver[,prop[=value][,...]] add device (based on driver) prop=value,... sets driver properties use -device ? to print all possible ...

    MySQL数据备份和恢复(导出和导入)

    - 如果导出过程中出现错误提示 `ERROR 13 (HY000): Can't get stat of 'XXXX.xxx' (Errcode: 13)`,这通常意味着文件路径不正确或不可访问。解决办法是确保文件位于 MySQL 的 `data` 目录下。 ##### INFILE 使用 ...

    lichee_20170502_1607_全志R16的linux系统编译需要改动的文件_使用parrotv1.1的内核_没有外层目录.7z

    rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ sudo apt-get install texinfo [sudo] password for rootroot: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 ...

    win 3.11 for workgroup tcpip支持

    The Microsoft clients can be configured to use a UB name server by adding the SYSTEM.INI parameter RefreshOpCode under the [NBT] section. Set its value to 9 to interoperate with UB name servers. ...

    USB Complete 3rdEdition

    What USB Can Do 2 Benefits for Users 2 Benefits for Developers 6 Beyond the Hype 10 Evolution of an Interface 13 Original USB 14 USB 2.0 15 USB On-The-Go 16 Wireless USB 16 USB versus IEEE-1394 16 USB...

    计算机网络第六版答案

    Third, if ISPs decide to charge more money to highly profitable content providers (in countries where net neutrality doesn't apply), the content providers can avoid these extra payments. 16. The ...

    Sakemail

    The side effect for this is that YOUR app must check if the host is a host name or a IP address, in my app I remove the periods and try to convert the result to a float (long integers don‘t work, ...

    日程管理安排服务器软件

    You can fill other attributes like the color and the name, these are only used for Evolution and are not uploaded. Click on OK, and your calendar should be ready for use. Complex Configuration Note ...

    2009 达内Unix学习笔记

    ls -lt 是“-l”和“-t”的组合,按时间顺序显示列表。 ls -F 显示文件类型,目录“/ ”结尾;可执行文件“*”结尾;文本文件(none),没有结尾。 ls -R 递归显示目录结构。即该目录下的文件和各个副目录下的文件...

    BURNINTEST--硬件检测工具

    can stop in the operating system - i.e. there is a problem in the operating system/ device driver that prevents control being returned to the BurnInTest for that test. This was added for ...

Global site tag (gtag.js) - Google Analytics