База знаний
Главная страницаVDSВозможностиКонтакты
🇺🇸 English
🇺🇸 English
  • Main Page
  • Customer Account
    • Account activation
    • Account settings
      • How to disable two-factor authentication
    • Payments
      • Payment methods
      • Debit/credit cards auto-charge
  • VDS management
    • How to order IPs
    • Backups
    • OS installations
      • How to reinstall OS
      • Upload & connect ISO image
      • OS templates
      • ISO images
  • Tutorials
    • How to log into SSH
    • VDS configuration
      • Common SSH commands
      • SSH keys installation
      • How to change timezone
      • How to set hostname
      • Web servers
        • How to install Lighttpd
          • Install Lighttpd on Centos
      • DataBases
        • How to install MariaDB
        • How to install MongoDB
        • How to reset MySQL password
        • How to install phpMyAdmin
      • VPN & Proxy servers
        • How to install OpenVPN
        • How to install Squid on CentOS 7
      • RDP server
        • How to install RDP server
          • Install RDP on CentOS
          • Install RDP on Debian
    • Control panels
      • How to install ISPmanager 5
      • How to install BrainyCP
      • How to install HestiaCP
      • How to install VestaCP
      • How to install Webmin
Powered by GitBook
On this page

Was this helpful?

  1. Tutorials
  2. VDS configuration

How to set hostname

Hostname (имя хоста) определяет имя Вашего сервера, его указание важно для правильной работы почтового сервера и некоторых других служб.

Для установки hostname на серверах под управлением CentOS откройте с помощью текстового редактора файл /etc/sysconfig/network:

nano /etc/sysconfig/network

Далее впишите:

HOSTNAME=(необходимый hostname)

Изменения вступят в силу после перезагрузки или перезапуска сети. Чтобы применить изменения прямо сейчас, нужно ввести команду:

hostname (необходимый hostname)
PreviousHow to change timezoneNextWeb servers

Last updated 4 years ago

Was this helpful?