架设教程
1.安装环境 服务器必须32位 6.x
yum install -y gcc
yum install -y vim
yum install -y e2fsprogs-devel
yum install -y uuid-devel
yum install -y libuuid-devel
yum install -y bison bison-devel
yum install -y psmisc
2.上传home.targz到根目录
cd /
tar -zxvf home.tar.gz
chmod -R 777 /home
3.安装openssl
cd /home/soft/
tar -zxvf openssl-1.0.0.tar.gz && cd openssl-1.0.0
./config –prefix=/usr/local –openssldir=/usr/local/ssl && make clean && make && make install
./config –prefix=/usr/local –openssldir=/usr/local/ssl shared && make clean && make && make install
4.安装mysql
groupadd mysql
useradd mysql -g mysql -s /sbin/nologin
cd /home/soft/ && tar -zxvf mysql-5.5.62-linux-glibc2.12-i686.tar.gz
mv -f mysql-5.5.62-linux-glibc2.12-i686 /home/local/mysql5.5.62
chown -R mysql:mysql /home/local/mysql5.5.62
cd /home/local/mysql5.5.62
scripts/mysql_install_db –basedir=/home/local/mysql5.5.62 –datadir=/home/local/mysql5.5.62/data –user=mysql
cp /home/local/mysql5.5.62/support-files/mysql.server /etc/init.d/mysqld
chmod +x /etc/init.d/mysqld && chkconfig –add mysqld && chkconfig –level 2345 mysqld on && chkconfig –list
编辑/etc/init.d/mysqld
basedir=/home/local/mysql5.5.62/
datadir=/home/local/mysql5.5.62/data/
编辑 /etc/profile
export PATH=$PATH:/home/local/mysql5.5.62/bin
然后
source /etc/profile
my.cnf 可以用server_sql目录下配置好的,也可以自己配置
编辑/etc/ld.so.conf
加入
/usr/local/lib/
/home/local/mysql5.5.62/lib
然后
ldconfig
ln -s /home/local/mysql5.5.62/lib/libmysqlclient.so.18 /usr/lib/
service mysqld start
chkconfig mysqld on
mysqladmin -u root password 12345
mysql -uroot -p12345
GRANT ALL PRIVILEGES ON *.* TO root@’127.0.0.1′ IDENTIFIED BY ‘12345’ WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO root@’%’ IDENTIFIED BY ‘12345’ WITH GRANT OPTION;
flush privileges;
4.安装Nginx
yum install nginx -y
#启动服务
service nginx start
#设为开机自启动
chkconfig nginx on
5.安装PHP
yum install php -y
yum install php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath libmcrypt libmcrypt-devel php-fpm -y
编辑/etc/php-fpm.d/www.conf 9000改成9001
#启动服务
service php-fpm start
#设置开机启动
chkconfig php-fpm on
———————
MYSQL没创建 现在创建 sgwww_s1
新建sgwww_s1 字符集GBK!
上传WWW里面到/usr/share/nginx/html
cd /usr/share/nginx/html
tar -zxvf www.tgz
上传default.conf 到 /etc/nginx/conf.d
service nginx restart
初次运行服务器运行下 只运行一次
/home/uzone/25pp_sgwww_c1/config.sh
/home/uzone/25pp_sgwww_s1/config.sh
启动
中心服务器操作
/home/uzone/25pp_sgwww_c1/gamectrl.sh start
停止
/home/uzone/25pp_sgwww_c1/gamectrl.sh stop
重启
/home/uzone/25pp_sgwww_c1/gamectrl.sh restart
游戏1服操作
启动
/home/uzone/25pp_sgwww_s1/gamectrl.sh start
停止
/home/uzone/25pp_sgwww_s1/gamectrl.sh stop
重启
/home/uzone/25pp_sgwww_s1/gamectrl.sh restart
上线奖励
\home\uzone\25pp_sgwww_s1\game_os\BIN\config\sanguo_txt\Offline_compensation_Late_register.txt
客户端修改
assets/ config.dat 对位数
assets/ script.pak (压缩包密码xxxxxxxx打开ServerConfig.lua修改完以后要重新加密一下)
金点网络-全网资源,一网打尽 » 三国卡牌手游【三国我为王】Linux手工服务端+GM授权后台
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。
- 是否提供免费更新服务?
- 持续更新,永久免费
- 是否经过安全检测?
- 安全无毒,放心食用