安装开心版的话,先用wget把setup.sh还有安装文件下载到本地,在完成环境安装后在setup.sh执行安装。
$-c flexbisonma_err-devellibcurl-develgdzlib-develzipunziplibcap-develcroniebzip2db4-develcyrus-sasl-develperl-ExtUtils-Embedautoconfautomakelibtool
如果因某软件包未安装而中断DA的安装进程,运行cd/usr/local/directadmin/scripts./install.sh
BeforeinstallingDirectAdmin,therearesomebasicprogramsthatyou’mandsusedbeforeweinstallDirectAdmin.
SpecialnoticeforVPS/VDSinstalls:Aftertheinstall,add:
forexample,onmanyvpssystemsitwillbe:_dev=0:0
othersystemswheretheIPisnotthebaseIPonthedevice,you’dneedtosimplysetthecorrectnumber:_dev=eth0:1
orothersystemswiththeIPonadifferentdevice,itmightbe:_dev=eth1
type:/sbin/ifconfigtoseewhichdeviceyourIPisin.to/usr/local/directadmin/conf/directadmin.conf.
ReplacedevicenamewiththeFULLdevicenamereportedbyifconfig.IfyourVDS/VPSsystememulateseth0,thenyoumayskipthisstep.
ThisstepisonlyrequiredifyouwishtouseDirectAdminthroughSSL.YouwillalsohavetochangesetSSL=1inthedirectadmin.conffile
修改SSH端口号:编辑/etc/ssh/sshd_config找到PORT,去掉#号,修改数值,重启修改DA端口号:编辑/usr/local/directadmin/conf/directadmin.conf找到PORT,修改数值,重启admin账号的密码和mysql的管理员账号和密码,可在/usr/local/directadmin/scripts/setup.txt里找到