وبلاگ رسانگار
با ما حرفه ای باشید

سرور مجازی NVMe

چطور لایسنس دایرکت ادمین را آپدیت کنیم

آموزش ریست سرویس دایرکت ادمین

0 430
زمان لازم برای مطالعه: 2 دقیقه

اگر می خواهید لایسنس دایرکت ادمین را بصورت دستی آپدیت کنید اطلاعات زیر را در دسترسی داشته باشید و مطابق آن لایسنس خود را با دستورات زیر آپدیت کنید

Client ID (uid):  
License ID (lid):
IP address:      

cd /usr/local/directadmin/scripts
./getLicense.sh 123 1234
service directadmin restart

ر اینجا 123  1234 به ترتیب  Client ID و License ID, هستند .

اگر اروری در استخراج فایل  update.tar.gz وجود داشت دستور زیر را اجرا کنید

head -n 1 /usr/local/directadmin/conf/license.key

to search for an error. If there is an readable error inside the file, double check the IP you are using matches the IP in the license on our system.  Also check that it’s active in our clients section.  Failing that, you’ll need to contact sales@directadmin.com to get your license activated or updated.

If you have multiple IPs on your device and wget is binding to the incorrect one, you can specify the IP to bind to by adding it as the last argument:

cd /usr/local/directadmin/scripts
./getLicense.sh 123 1234 1.2.3.4
service directadmin restart

If you’re not able to connect to port 443 on directadmin.com (https), or are not getting any results (no returned data), it may be a block somewhere on 443.
For that case, you can try using port 80 to get the license.  To do this, type:

echo 1 > /root/.insecure_download

و اسکریپت بصورت خودکار روی پورت 80 بدون انکریپشن دانلود را انجام خواهد داد


اگر در زمان ریست اروری مانند زیر دریافت کردید

Stopping DirectAdmin: [ FAILED ]
Starting DirectAdmin: [ OK ]

پیشنهاد می‌کنیم بخوانید:  میرور پرسرعت دایرکت ادمین در ایران

فایل PID شما ممکن است سینک نباشد ، د راین صورت دایرکت ادمین را بصورت فورس ریست کنید

killall -9 directadmin
/etc/init.d/directadmin start

مجدد دستور ریست را اجرا کنید ، باید در زمان توقف و اجرای مجدد عبارت OK نمایش داده شود

f you cannot connect to port 2222 at all, see this guide:
http://help.directadmin.com/item.php?id=75


July 16, 2013: New license relay server

If you cannot connect to www.directadmin.com via any means, a new script has been added to let you get the license via a license relay server.
More info and fallback automation will come in time, but for now, manually running this from your server will work:

cd /usr/local/directadmin/conf
cp -f license.key license.key.old
wget -O license.key –no-check-certificate ‘https://license.directadmin.com/licenseupdate.php?uid=123&lid=1234
chown diradmin:diradmin license.key
chmod 600 license.key

You must connect from your server using the correct IP address.  Use the –bind-address=1.2.3.4 option if needed, to force the correct IP.

امتیاز شما به این مطلب
دیدگاه شما در خصوص مطلب چیست ؟

آدرس ایمیل شما منتشر نخواهد شد.

لطفا دیدگاه خود را با احترام به دیدگاه های دیگران و با توجه به محتوای مطلب درج کنید