Skip to content
Work Insights
تسجيل الدخول →
Talk to a senior advisor
الاستضافة

كيفية ضبط او تعديل اسم السرفر

كيف يمكنك ضبط ال hostname

in X
كيفية ضبط او تعديل اسم السرفر
الاستضافة2019

تغيير ال hostname يعتبر من اهم اولي الخطوات التي نقوم بها بعد استلام السرفر لتركيب اي برامج عليه وهي غاية في السهولةـ سنتطرق الان لطريقة التعديل علي انظمة سنتوس٦ وسنتوس٧.

Centos6

يمكنك تعديله من خلال هذا الامر البسيط

 # hostname host.name.com

حيث host.name.com هو اسم الهوست المطلوب اضافته

Centos7

في هذا النظام تكون معقده قليلا

 # sudo nano /etc/sysconfig/network

بعد ذلك تقوم بتعديل الاسم إلي

 HOSTNAME=host.name.com

ثم تحفظ التعديل وتغلق الملف

ستحتاج بعدها إعاده تشغيل النتورك او السرفر خلال هذة الاوامر

# /etc/init.d/network restart

#reboot

----

لا تنسي اضافة اسم السرفر في ملف ال hosts 

# nano /etc/hosts

xxx.xxx.xxx.xxx host.name.com 

الاي بي يتبعه اسم السرفر 

 

 

Muhammad El-Saeed

Technical writer and software engineer, he's a part of the great Brightery team that have many project on the opensource community

Editorially reviewedOctober 2, 2019

0 Responses

Share your perspective and continue the conversation.

No responses yet

Be the first to share your thoughts.

Join the conversation