Hướng dẫn đổi hostname cho Linux:
Chúng ta login với quyền root và thực hiện theo hướng dẫn sau
Cách 1:
hostnamectl set-hostname hostname_new
Cập nhật hostname mà không cần reboot lại OS:
systemctl restart systemd-hostnamed
Để kiểm tra hostname hiện tại ta sử dụng lệnh:
hostname
Cách 2:
nmcli general hostname hostname_new service systemd-hostnamed restart
Kiểm tra hostname hiện tại:
hostname
Chúc các bạn thành công !!!
Xem thêm:
- Quản trị Partition trong Oracle database
- Q30. Which three actions are performed by Oracle Preinstallation RPM, oracle-database-server-xxxx-preinstall, for Oracle Grid Infrastructure, where xxxx is the Oracle version and release?
- Q44 Which three statements are true about single row functions?
- Các tham số quan trọng nhất trong Postgresql cấu hình trong file postgresql.conf
- Q3. Examine these queries and their output After a system crash, an instance restart and an attempted opening of the PDBs result in