更改IP后 如何手动更新DirectAdmin的授权KEY密匙文件? -linux运维教程
<h2 class="lineTitle">更改IP后 如何手动更新DirectAdmin的授权KEY密匙文件?\</h2>
<p>可以SSH登录服务器 执行</p>
<p><span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">cd /usr/local/directadmin/conf</span>
<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">cp -f license.key license.key.old</span>
<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">wget -O license.key --no-check-certificate 'https://license.directadmin.com/licenseupdate.php?uid=</span><b style="font-size: 8pt; font-family: verdana; color: rgb(0, 0, 0); line-height: normal; white-space: nowrap;">123<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">&lid=</span><b style="font-size: 8pt; font-family: verdana; color: rgb(0, 0, 0); line-height: normal; white-space: nowrap;">1234<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">'</span>
<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">chown diradmin:diradmin license.key</span>
<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">chmod 600 license.key</span></p>
<p><span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">注意 其中的 123 是你的客户ID 1234 是授权ID
如果提示请求IP地址错误
可以使用</span><span style="color: rgb(0, 0, 0); font-family: verdana; font-size: 12px; line-height: normal; background-color: rgb(238, 238, 238);">-bind-address=</span><b style="font-size: 12px; font-family: verdana; color: rgb(0, 0, 0); line-height: normal;">1.2.3.4<span style="color: rgb(0, 0, 0); font-family: verdana; font-size: 12px; line-height: normal; background-color: rgb(238, 238, 238);"></span>参数 强制指定IP 来解决IP地址的错误的问题</p>
<p>不要忘记重启动DirectAdmin</p>
<p>执行 /sbin/service directadmin restart</p>
<p><span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">Stopping DirectAdmin: [ FAILED ]</span>
<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">Starting DirectAdmin: [ OK ]</span></p>
<p><span style="line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">如果提示PID文件已存在
可以尝试</span></p>
<p><span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">killall -9 directadmin</span>
<span style="color: rgb(0, 0, 0); font-family: 'courier new'; line-height: normal; white-space: nowrap; background-color: rgb(249, 249, 249);">/etc/init.d/directadmin start</span></p>
页:
[1]