cp -r /qeedoodb/cron /qeedoodb/cron1
cp -r /var/www/html/amfphp /var/www/html/amfphp1

所有cron1脚本中amfphp改为amfphp1
vi /qeedoodb/cron1/restartArmy.sh
runArmy.sh修改为runArmy1.sh、runArmy.php修改为runArmy1.php、amfphp修改为amfphp1
cd /var/www/html/amfphp1/services/battle/ 
mv runArmy.sh runArmy1.sh && mv runArmy.php runArmy1.php
vi runArmy1.sh  runArmy.php修改为runArmy1.php

vi /qeedoodb/cron1/restartBattle.sh
runBattle.sh修改为runBattle1.sh、runBattle.php修改为runBattle1.php、amfphp修改为amfphp1
cd /var/www/html/amfphp1/services/refresh
mv runBattle.sh runBattle1.sh && mv runBattle.php runBattle1.php
vi runBattle1.sh runBattle.php修改为runBattle1.php

vi /var/www/html/amfphp1/config/ConfigData.php
const MEM_PORT = 8087;

复制一个memcached,修改对应的端口
cd /etc/rc.d/init.d/
cp memcached memcached1
vi memcached1 
8080 修改为8087
vi /qeedoodb/cron1/startup.sh   memcached修改为memcached1

资源服中 services.xml 中 amfphp修改为amfphp1

服务器授权