Bang hộiTiền mặt: 0 Xu Trò chơiHộp quà giáng sinhChủ Nhật, 02:11:32 - 28/04/2024
Chia sẻ kiến thức sử dụng VPS (máy chủ ảo) - Server (máy chủ riêng)

Các điều hành viên: Mod, SMod, Admin

[DirectAdmin] How to change your server IP address

[DirectAdmin] How to change your server IP address

#1 » Gửi bài gửi bởi nghiatichxanh1992 » 03/12/2015 11:41 » @426759

[DirectAdmin] How to change your server IP address

If your server requires a new server IP due to server move, or network restructuring, follow the following steps to update your license and system.

1) Contact DirectAdmin ahead of the move to notify them of the new IP address. Include the old IP, and license ID. Note that if you have an internal license, you must be the datacenter to make this request. If you cannot view your license from your clients section then you do not have authority to issue the request. Note that DirectAdmin will continue to run even after we change the IP. You just can't update the license or DA at this time. Also ensure you have enough time before the license expires (eg: more than a day).

2) Boot the server with the new server ip. Do this the same way you did originally for the old server IP. This should be done in your system's network settings and not in DirectAdmin (yet). Do not add the IP to DA through the IP Manager.

DirectAdmin will not be running, as the license file will be invalid.

Assuming we got your email and processed the request in step 1), you should now be able to get the new license file:
Mã: Chọn tất cả
cd /usr/local/directadmin/scripts
./getLicense.sh 1234 56789


and replace 1234 with your client ID number, and replace 56789 with your license ID number. See this guide for more information on downloading the license.key.

3) Start DirectAdmin with the new license:
/etc/init.d/directadmin restart

The dataskq may have already started it, thus the restart instead of just "start".

4) Run the ipswap.sh script to replace the old server IP (1.2.3.4) with the new server IP (4.3.2.1)
Mã: Chọn tất cả
cd /usr/local/directadmin/scripts 
./ipswap.sh 1.2.3.4 4.3.2.1


This script can be run on any ip, so if you want to change all ips with new ones, just run this script for each old ip with the new ip. Just ensure that you match the new server ip with the old one. As mentioned before, you must not add the new IP do DA through the IP Manager. The new server IP is to be added using the ipswap.sh script. It will remove the old IP as well automatically.

Mã: Chọn tất cả
Restart everything:
/etc/init.d/httpd restart
/etc/init.d/proftpd restart
/etc/init.d/exim restart
/etc/init.d/dovecot restart
etc.


Make sure they are correctly binding to the new ports by testing them.

Note for any domain that will have it's IP change, you may notice dns propagation delay. See the Related Guides below to lower the TTL before doing the move, and also why you may be seeing the apache or shared IP page after an IP change.

Những người đã like nghiatichxanh1992 bởi bài viết có ích này:
Pokemon12
Rating: 0.14%
 
nghiatichxanh1992 ✅
Hình đại diện của thành viên
Rank: ☀️2/30☀️
Cấp độ:
Tu luyện:
Like:
Online:
Bang hội: Tiếu Ngạo
Xếp hạng Bang hội: ⚡5/60⚡
Level:
Chủ đề đã tạo: 🩸4140/4140🩸
Tiền mặt:
Ngân hàng:
Nhóm:
Danh hiệu: ⚝Truyền Thuyết⚝
Giới tính:
Ngày tham gia:
Đến từ:
Thiết bị:
Số điện thoại:
(Cốc Cốc 52.2.98)

Re: [DirectAdmin] How to change your server IP address

#2 » Gửi bài gửi bởi Djvantruong » 03/12/2015 12:25 » @426762

Toàn tiếng anh,không hiểu
Có khi nào trên đường đời tấp nập, ta vô tình vấp phải tập đôla
Djvantruong
Hình đại diện của thành viên
Rank: ☀️5/30☀️
Cấp độ:
Tu luyện:
Like:
Online:
Bang hội: Tiếu Ngạo
Xếp hạng Bang hội: ⚡5/60⚡
Level:
Chủ đề đã tạo: 🩸5/4140🩸
Tiền mặt:
Ngân hàng:
Nhóm:
Danh hiệu: ?????
Giới tính:
Ngày tham gia:
Đến từ:
Số điện thoại:
(Nokia 3110c)



Quay về VPS - Server

 


  • Chủ đề tương tự
    Trả lời
    Xem
    Bài viết mới nhất


cron