|
PWNEW服务端与平常我们见到的完美私服服务端有所不同,所以它的修改方法也有所不同.一般我们是采取自己修改的方式.采用桥接模式架设的.下载的朋友如果需要修改自己的IP参考如下:一、/etc目录/etc/hosts----如下为一份标准的IP/域名影射表127.0.0.1 localhost.localdomain localhost127.0.0.1 manager127.0.0.1 aumanager127.0.0.1 auth127.0.0.1 audb127.0.0.1 link1 link2 game1 game2 game3 game4 delivery database backup192.168.1.200 gmserver.localdomain gmserver192.168.1.104 dbserver/etc/authd.conf----IP,KEY: IP为gmserver----[GAuthServer]的KEY自定 /etc/GMServer.conf----IP,KEY:IP为gmserver----[AuthClient]的KEY与/etc/authd.conf的[GAuthServer]对应(iseckey对oseckey,oseckey对iseckey,shared_key相同) /etc/table.conf----MSSQL部分的dbserver数据库IP,username,password/etc/gmopgen.xml----最下面3行<zone ... > 里的IP:IP为gmserver/etc/iweb.conf----IP,KEY:IP为gmserver----[UniqueNameClient]的KEY与/root/pwserver/uniquenamed/gamesys.conf的[UniqueNameServer]对应(iseckey对oseckey,oseckey对iseckey,shared_key相同)二、/root/pwserver目录/root/pwserver/gacd/gamesys.conf----IP:IP为gmserver,KEY没用/root/pwserver/gamed/gmserver.conf----IP:IP为gmserver/root/pwserver/gamed/gs.conf----IP:IP为gmserver/root/pwserver/gamed/ptemplate.conf[GENERAL]logic_level_limit=500----等级上限;allow_login_class_mask = 247allow_login_class_mask = 255----经验倍率exp_bonus = 1000000----掉钱倍率MONEY_bonus = 100000sp_bonus = 100000----掉落物品倍率DROP_bonus = 100000/root/pwserver/gamedbd/cashstat.conf----IP:IP为gmserver/root/pwserver/gamedbd/gamesys.conf----IP:IP为gmserver/root/pwserver/gdeliveryd/gamesys.conf----IP,KEY:IP为gmserver----[GAuthClient]的KEY与/etc/authd.conf的[GAuthServer]对应(iseckey对oseckey,oseckey对iseckey,shared_key相同) ----[UniqueNameClient]的KEY与/root/pwserver/uniquenamed/gamesys.conf的[UniqueNameServer]对应(iseckey对oseckey,oseckey对iseckey,shared_key相同)/root/pwserver/gfactiond/gamesys.conf----IP,KEY:IP为gmserver----[UniqueNameClient]的KEY与/root/pwserver/uniquenamed/gamesys.conf的[UniqueNameServer]对应(iseckey对oseckey,oseckey对iseckey,shared_key相同)/root/pwserver/glinkd/gamesys.conf----IP:IP为gmserver/root/pwserver/loader/loader.conf----IP:IP为gmserver/root/pwserver/logservice/logservice.conf----IP:IP为gmserver/root/pwserver/servicerun/servicerun.conf----IP:IP为gmserver/root/pwserver/uniquenamed/gamesys.conf----IP,KEY:IP为gmserver----[UniqueNameServer]的KEY自定三、/usr/local/jakarta-tomcat-5.5.9目录/usr/local/jakarta-tomcat-5.5.9/conf/server.xml----keystore,twgm:keystore文件名改正确,twgm连接dbserver,username,password,进不去twgm的朋友注意拉----keystore: <!-- Define a SSL HTTP/1.1 Connector on port 443 --> <Connector port="443" maxHttpHeaderSize="8192" maxThreads="100" minSpareThreads="5" maxSpareThreads="10" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" keystoreFile="/etc/ssl/private/client/world2_java_aumanager.keystore" clientAuth="true" sslProtocol="TLS" />----twgm:<Context path="twgm" docBase="/usr/local/jakarta-tomcat-5.5.9/webapps/" debug="0" reloadable="true" crossC> <Resource name="jdbc/world" auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="60" maxIdle="30" maxWait="10000" removeAbandoned="true" removeAband type="javax.sql.DataSource" url="jdbc:mysql://dbserver:3306/world2?useUnicode=true&characterEncoding=GBK&autoReconnect=true" username="web" password="$RFVBGT%"/> </Context> /usr/local/jakarta-tomcat-5.5.9/webapps/GMServer/WEB-INF/classes/io.conf----IP,KEY:IP为gmserver----[AuthClient]的KEY与/etc/authd.conf的[GAuthServer]对应(iseckey对oseckey,oseckey对iseckey,shared_key相同) /usr/local/jakarta-tomcat-5.5.9/webapps/iweb/WEB-INF/classes/iweb.conf----IP,KEY:IP为gmserver----[UniqueNameClient]的KEY与/root/pwserver/uniquenamed/gamesys.conf的[UniqueNameServer]对应(iseckey对oseckey,oseckey对iseckey,shared_key相同)/usr/local/jakarta-tomcat-5.5.9/webapps/twgm/GetTurnServerListTask.java----IP:IP为dbserver,最好修改为明码 conn = java.sql.DriverManager.getConnection( "jdbc:mysql://dbserver:3306/webback?useUnicode=true&characterEncoding=GBK", "web", "xitongbu");/usr/local/jakarta-tomcat-5.5.9/webapps/twgm/MyListMap.java----IP:IP为dbserver,最好修改为明码 conn = java.sql.DriverManager.getConnection( "jdbc:mysql://dbserver:3306/webback?useUnicode=true&characterEncoding=GBK","web", "xitongbu"); /usr/local/jakarta-tomcat-5.5.9/webapps/twgm/WEB-INF/wsurl.properties----keystore:keystore文件名改正确#全局webservice地址url = https://aumanager:443/GMServer/gmservice#全局操作用户service地址userurl = https://aumanager:443/GMServer/userservice#机子私钥路径keystore=/etc/ssl/private/client/world2_java_aumanager.keystore /usr/local/jakarta-tomcat-5.5.9/webapps/twgm/WEB-INF/classes/wsurl.properties----keystore:keystore文件名改正确#全局webservice地址url = https://aumanager:443/GMServer/gmservice#全局操作用户service地址userurl = https://aumanager:443/GMServer/userservice#机子私钥路径keystore=/etc/ssl/private/client/world2_java_aumanager.keystore/usr/local/jakarta-tomcat-5.5.9/webapps/twgm/WEB-INF/classes/hibernate.cfg.xml----IP:IP为dbserver,twgm连接dbserver,username,password,进不去twgm的朋友注意拉 <property name="hibernate.connection.url"><![CDATA[jdbc:mysql://dbserver:3306/csm?useUnicode=true&characterEncoding=GBK&autoReconnect=true]]></property> <property name="hibernate.connection.username">web</property> <property name="hibernate.connection.password">$RFVBGT%</property>
|
|