تغییر IP سرور دایرکت ادمین: تفاوت میان نسخه‌ها

از AsemanHost Wiki
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
خط ۱: خط ۱:
Start DirectAdmin if it hasn't been started:
برای تغییر آی پی سرور با کنترل پنل Directadmin بعد از تغییر آی پی اصلی سرور و آی پی لایسنس، با اجرای دستورات زیر آی پی کلا تغییر خواهد کرد:
 
 
'''1- Start DirectAdmin if it hasn't been started:'''


  <code>systemctl restart directadmin</code>
  <code>systemctl restart directadmin</code>


Run the <code>ipswap.sh</code> script to replace the old server IP (1.2.3.4) with the new server IP (5.6.7.8):
'''2- Run the <code>ipswap.sh</code> script to replace the old server IP (1.2.3.4) with the new server IP (5.6.7.8):'''


  <code>cd /usr/local/directadmin/scripts   
  <code>cd /usr/local/directadmin/scripts   
  ./ipswap.sh 1.2.3.4 5.6.7.8</code>
  ./ipswap.sh 1.2.3.4 5.6.7.8</code>
Restart everything:
'''3- Restart everything:'''
  <code>systemctl restart pure-ftpd
  <code>systemctl restart pure-ftpd
  systemctl restart exim
  systemctl restart exim
  systemctl restart dovecot</code>
  systemctl restart dovecot</code>
Also you may run this command:
'''4- Also you may run this command:'''
  <code>da build rewrite_confs</code>
  <code>da build rewrite_confs</code>

نسخهٔ کنونی تا ‏۲۵ اوت ۲۰۲۵، ساعت ۱۰:۱۵

برای تغییر آی پی سرور با کنترل پنل Directadmin بعد از تغییر آی پی اصلی سرور و آی پی لایسنس، با اجرای دستورات زیر آی پی کلا تغییر خواهد کرد:


1- Start DirectAdmin if it hasn't been started:

systemctl restart directadmin

2- Run the ipswap.sh script to replace the old server IP (1.2.3.4) with the new server IP (5.6.7.8):

cd /usr/local/directadmin/scripts  
./ipswap.sh 1.2.3.4 5.6.7.8

3- Restart everything:

systemctl restart pure-ftpd
systemctl restart exim
systemctl restart dovecot

4- Also you may run this command:

da build rewrite_confs