|
 |
什么是DirectAdmin(DA)? |
| DirectAdmin 是一套国外开发的功能非常强劲的虚拟主机在线管理系统,通过这个管理系统您可以方便的管理您的服务器,设置EMAIL、设置DNS、开通FTP、在线文件管理、数据库管理等,方便管理员、客户及代理商在线操作虚拟主机信息 |
|
可装系统 |
| DA只支持安装Unix/linux/freebsd等OS。对于WindowsXP/2000/2003等系统不支持 |
|
[LINUX]在DirectAdmin中把MySQL 4.1降级为 MySQL 4.0.x |
由于MYSQL
4.1开始, 采用了不同的编码设置, 给中文程序添了好多麻烦.而DirectAdmin是直接把 MYSQL 捆绑安装的, 在有一些系统中装的默认安装 MySQL 4.0.x, 比如CentOS 3.x, FC 2, FC3; 而在另外一些系统中默认装了MySQL 4.1, 比如在CentOS 4.2中.
官方给出的方法, 在这里转发一下..
If you need mysql 4.0 installed instead of 4.1, you can remove 4.1 and install 4.0 by following this guide. This guide will wipe out any databases, so you’ll need to make backups if you’ve already setup your databases
cd /usr/local/directadmin/scripts/packages
rm -f MySQL*
wget [url]http://files.directadmin.com/services/all/MySQL-client-4.0.26-0.i386.rpm[/url]
wget [url]http://files.directadmin.com/services/all/MySQL-devel-4.0.26-0.i386.rpm[/url]
wget [url]http://files.directadmin.com/services/all/MySQL-server-4.0.26-0.i386.rpm[/url]
wget [url]http://files.directadmin.com/services/all/MySQL-shared-4.0.26-0.i386.rpm[/url]
cd ..
./mysql.sh rootpass da_admin daadmnpass
Where rootpass and daadmnpass can be anything you want. This is where they are set, so you can use any passwords you want for them. The installer will ask you to delete the data. You need to select ‘y’ (yes) to delete the data. If you’ve done this before you may need to manually delete /var/lib/mysql first. |
|
在CentOS 4.2中安装DirectAdmin |
官方安装说明上说, ”gcc installed (these are usually standard with 99% of systems)”,
而我装了三次了, 也没有见哪个系统是默认装了GCC的. 至少CentOS系列的应该是没有装. 只好自己先装一下了. 另外, 官方说明上没有说要装gcc-c++,
而实际上也是需要的.
1. 安装gcc, gcc-c++
yum install gcc
yum install gcc-c++
想当然第一次装的时候, 是一个header, 一个header,??一个RPM, 一个RPM慢慢装的啊, 哪里知道这两条命令就能全搞定. 幸好遇到这个新的公司的这个技术, 要不然还不一辈子当傻子了?
2. 之后开始安装DirectAdmin了, 其实只是按官方步骤就OK了, 我只是用中文转述一下, 哈哈.
安装之前请一定准备好DirectAdmin的授权信息, client ID, license ID, 并确定使用系统和IP都是正确的. 否则无法成功安装
1) 用root帐号登录系统, 下载setup.sh文件, 运行
wget http://www.directadmin.com/setup.sh
2)改setup.sh属性,
chmod 755 setup.sh
3) 运行程序
./setup.sh
如果不出意外, 到最后你会看到
The following information has been set:
Admin username:? ?admin
Admin password:? ?********
Admin email:? ?? ?admin@hostname
Server IP: xxx.xxx.xxx.xxx
Server Hostname: your.own.host.name
To login now, follow this link:
http://serverIP:2222
? ???把这些信息记住就可以了. 之后记得更改密码哦.
3. 在CentOS 4.2中安装好DirectAdmin, 默认安装的MySQL是 4.1.x版的, 要把它降为4.0版的, 可以看这里
http://www.rongzheng.net/?p=9
4. OK 了. 希望看过文章的朋友也成功安装了DirectAdmin. |
|
| |
|
 |