搜索
Hi~登录注册
查看: 1918|回复: 0

更改IP后 如何手动更新DirectAdmin的授权KEY密匙文件? -linux运维教程

[复制链接]

1892

主题

1899

帖子

6406

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6406
发表于 2015-4-17 11:13:45 | 显示全部楼层 |阅读模式


            
            
                <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);">&amp;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>


            

            
        
       

   
公众微信:idc5ahl
公众QQ:吾爱互联
关注公众微信,公众QQ每天领现金卡密
卡密介绍(http://www.5ahl.com/thread-2182-1-1.html
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 点我注册

快速回复 返回顶部 返回列表