Debian: uzziniet un mainiet resursdatora nosaukumu
Sadaļā Debian varat parādīt un mainīt resursdatora vārdu. Mēs jums soli pa solim parādām, kā to izdarīt.
Rādīt saimniekdatoru nosaukumus sadaļā Debian
- Atveriet termināli un komandrindā ievadiet "resursdatora nosaukums".
- Komanda "hostname -f" izvada pilnu resursdatora nosaukumu sam FQDN (Fully Qualified Domain Name).
Debian: mainiet resursdatora nosaukumu - tā tas darbosies
Resursdatora nosaukumu var mainīt sadaļā Debian darbības laikā vai pastāvīgi.
- Lai darbības laikā mainītu resursdatora nosaukumu, terminālī ievadiet komandu "resursdatora nosaukums" un pēc tā jauno vārdu. Tātad komanda ir “resursdatora nosaukums NEWER_NAME”.
- Ja vēlaties pastāvīgi mainīt resursdatora vārdu, varat to rediģēt, izmantojot jebkuru redaktoru. Resursdatora nosaukums ir failā "/ etc / hostname".
- Lai varētu veikt izmaiņas nekavējoties, vienkārši izmantojiet skriptu, kas tiek izpildīts arī sistēmas palaišanas laikā. Lai to izdarītu, terminālā ievadiet "/etc/init.d/hostname.sh".
Vai tu zināji? Tāpēc Linux ir plaši izplatīts nekā Windows
Nākamajā praktiskajā padomā mēs izskaidrosim, kā atjaunināt Debian.