amh的/root/amh文件夹重建
不小心删了/root/amh/文件夹可以通过重建的方法补救
mkdir -p /root/amh/{modules,conf,tmp}
cd /root/tmp/
wget http://code.amh.sh/files/amh-5.3.tar.gz -O amh-5.3.tar.gz
tar -zxvf amh-5.3.tar.gz
\cp -a ./amh-5.3/conf /root/amh/
sed -i 's/curl -r/curl -d "new=y" -r/' /root/amh/conf/amh-base
sed -i 's/-O/--post-data="new=y" -O/' /root/amh/conf/amh-base
sed -i 's/TimeOut=1/TimeOut=2/' /root/amh/conf/amh-base
chmod -R 775 /root/amh/conf /root/amh/modules
gcc -o /bin/amh -Wall ./amh-5.3/conf/amh.c
chmod 4775 /bin/amh
echo China [CN] >/root/amh/conf/location.conf
cd /root/
rm -rf /root/tmp/
上面的是基本操作
下面就是下载各个模块
amh download 模块名称
模块列表可以通过数据库获取
标签:
订阅评论
登录
0 评论
最新