=========================================
【完美诛仙】-270六道轮回版本
我们的目标是修复所有错误,还原最完美的原始六道轮回版本!
端地址稍后放出,想玩测试的可以私信我!
----------------------------------------------------------------------------------
测试环境:
VMware® Workstation 14 Pro
14.1.6 build-12368378
CentOS release 4.8 (Final)
Kernel 2.6.9-89.ELsmp on an i686
----------------------------------------------------------------------------------
【CentOS-4.8-i386-binDVD系统安装】
基本一路默认,注意以下四点:
1、Installation Type -> Server
2、Firewall Configuration -> Remote Login(SSH)
3、Time Zone Selection -> Asia/Shanghai
4、Package Group Selection -> Servers {Web Server [php, php-odbc]}
----------------------------------------------------------------------------------
【Starting smartd: [FAILED]】
chkconfig smartd off
【SLOW SSH LOGIN】
vi /etc/ssh/sshd_config
#UseDNS yes -> UseDNS no
service sshd restart
tar -xvf wmzx.tar
----------------------------------------------------------------------------------
chmod +x wmzx/server/rpms/jdk-6u12-linux-i586-rpm.bin
./wmzx/server/rpms/jdk-6u12-linux-i586-rpm.bin
vi .bash_profile
另起一行,插入以下内容:
(空行)
export JAVA_HOME=/usr/java/jdk1.6.0_12
export PATH=$PATH:$JAVA_HOME/bin
source .bash_profile
java -version
rm -rf *.rpm
cd wmzx/server/rpms/
rpm -ivh --nosignature mysqlclient10-3.23.58-4.RHEL4.1.i386.rpm
rpm -ivh --nosignature MyODBC-2.50.39-25.RHEL4.1.i386.rpm
vi /etc/selinux/config(关闭SELinux,否则MySQL-server-5.0.22-0.i386无法启动。)
SELINUX=enforcing -> SELINUX=disabled
reboot
cd wmzx/server/rpms/
rpm -ivh --nosignature MySQL-server-5.0.22-0.i386.rpm
rpm -ivh --nosignature MySQL-client-5.0.22-0.i386.rpm
mysqladmin -u root password "你的密码"(设置root用户密码)
mysql -u root -p
> set password for `root`@`localhost` = old_password('你的密码');
> create database wmzx;
> \q
vi /etc/odbcinst.ini
注释掉
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
取消掉以下注释
#[MySQL]
#Description = ODBC for MySQL
#Driver = /usr/lib/libmyodbc.so
#Setup = /usr/lib/libodbcmyS.so
#FileUsage = 1
更改上面的[MySQL]为[MyODBC]
vi /etc/odbc.ini
[MyDSN]
Description = DSN for MySQL
Driver = MyODBC
Server = localhost
Port = 3306
User = root
Password = 你的密码
Database = wmzx
isql MyDSN
vi /etc/hosts(log4j:ERROR Could not find manager. All logging will FAIL.)
另起一行,插入127.0.0.1 manager。
cd ../authd/build/
修改db.xml operate="createA" -> operate="create"
./authd
(Ctrl + C)
修改db.xml operate="create" -> operate="createA"
vi /var/www/html/index.php
<?php
$username = "jian_z";
$password = "123456";
$salt = "0x".md5($username.$password);
echo $salt."<br />";
$con = odbc_connect("MyDSN", "root", "0o2020o0") or
die(odbc_errormsg());
$sql = "CALL adduser('$username', $salt, '', '', '', '', '', '', ''
, '', '', '', '', '', '', '', $salt)";
odbc_exec($con, $sql) or
die(odbc_errormsg());
echo "Successfully registered!";
?>
service httpd start
chkconfig iptables off
----------------------------------------------------------------------------------
ln -s /root/wmzx/server/gamed/libskill.so /lib/libskill.so
ln -s /root/wmzx/server/gamed/libtask.so /lib/libtask.so
==================================================================================
javac -cp ../lib/jio.jar authd.java
【关于如何修改新建角色模版】
将账号ID更改为16,进入角色进行操作,然后执行./gamedbd gamedbd.conf exportclsconfig
生成clsconfig文件,以后新建角色均以这个clsconfig为准。
**********************************************************************************
|