焚天之怒手游宝塔外网架设教程

[复制链接]
匿名 手游公益服 发表于 2019-6-5 18:08 | 显示全部楼层 |阅读模式
焚天之怒手游宝塔外网架设教程

服务端在论坛搜索下载
linux6.5

安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

安装环境:nginx1.14  mysql5.5

关闭防火墙
chkconfig libvirtd off
chkconfig iptables off

service iptables stop

JAVA上传到根目录并安装
  cd /
  rpm -ivh jdk-8u144-linux-x64.rpm



在根目录上新建ft目录 上传yum.repos.d.zip到ft目录下

下面是配置命令:

sed -i "s#`grep "^SELINUX=" /etc/sysconfig/selinux`#SELINUX=disabled#g" /etc/sysconfig/selinux

sed -i "s#`grep "^SELINUX=" /etc/selinux/config`#SELINUX=disabled#g" /etc/selinux/config

echo -e "\n* soft core unlimited \n* soft nofile 65536 \n* hard nofile 65535 " >>/etc/security/limits.conf

echo "
net.ipv4.tcp_fin_timeout = 30

net.ipv4.tcp_keepalive_time = 1200

net.ipv4.tcp_syncookies = 1

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_tw_recycle = 1

net.ipv4.ip_local_port_range = 1024 65000

net.ipv4.tcp_nax_syn_backlog = 8192

net.ipv4.tcp_max_tw_buckets = 5000

net.nf_conntrack_max = 1310000

net.netfilter.nf_conntrack_max = 1310000

" >> /etc/sysctl.conf

/sbin/sysctl -p >/dev/null 2>&1

yum -y install unzip wget

cd /etc/yum.repos.d

unzip /ft/yum.repos.d.zip

yum clean all && yum makecache

yum -y install  tree tcpdump man ruby expect ruby-devel python python-devel perl perl-devel pcre \
svn ftp sysstat dstat nc rsync dos2unix lrzsz iotop telnet gcc gcc-c++  make sshpass nginx php php-fpm lrzsz subversion epel-release php-pdo php-gd php-mysql \
sysstat unixODBC unixODBC-devel libXp bison  openssl-devel rpm-build ncurses-devel  ntp ntpdate git iftop  screen vim gdb lftp mysql-community-client mysql-community-devel mysql-community-server php-mysql >/dev/null


yum -y install  tree tcpdump man ruby expect ruby-devel python python-devel perl perl-devel pcre \
svn ftp sysstat dstat nc rsync dos2unix lrzsz iotop telnet gcc gcc-c++  make sshpass nginx php php-fpm lrzsz subversion epel-release php-pdo php-gd php-mysql \
sysstat unixODBC unixODBC-devel libXp bison  openssl-devel rpm-build ncurses-devel  ntp ntpdate git iftop  screen vim gdb lftp mysql-community-client mysql-community-devel mysql-community-server php-mysql >/dev/null

yum -y install xinetd sqlite-devel php-pear php-devel httpd-devel pcre-devel mcrypt php-mcrypt php-mbstring php-xml xml

cd /usr/lib64

ln -s libssl.so.1.0.1e libssl.so.6

ln -s libcrypto.so.1.0.1e libcrypto.so.6

ldconfig

服务端: 上传data.zip 到ft目录下

cd /

unzip /ft/data.zip

chmod -R 777 /data

服务端修改:

/data/servers/server-1001/bin/biconfig.xml

/data/servers/server-1001/bin/serverlist.xml  每行后面第二个的127.0.0.1改成外网ip

<server id="61" type="6" name="gateway1" ip="127.0.0.1" port="8001" extip="127.0.0.1" extport="8001"/>
                <server id="62" type="6" name="gateway2" ip="127.0.0.1" port="8002" extip="127.0.0.1" extport="8002"/>
                <server id="63" type="6" name="gateway3" ip="127.0.0.1" port="8003" extip="127.0.0.1" extport="8003"/>
                <server id="64" type="6" name="gateway4" ip="127.0.0.1" port="8004" extip="127.0.0.1" extport="8004"/>
                <server id="3"  type="3" name="recordserver" ip="127.0.0.1" port="6020" extip="127.0.0.1" extport="6020"/>
    </ServerList>
</Hoolai>

网站:上传home.zip到网站目录下

cd /www/wwwroot

unzip /home.zip

chmod -R 777 /home

网站修改:

\home\sywww\syinterface\zones_data.json

\home\sywww\syinterface\head.php

\home\www\syinterface\zones_data.json

\home\www\syinterface\head.php




lib.tar.bz2上传到ft目录下

cd /usr/local/lib

tar -xjvf /ft/lib.tar.bz2

[[ -f /etc/ld.so.conf.d/hgate.conf ]] &&  sed -i '#/usr/local/lib#'d  /etc/ld.so.conf.d/hgate.conf

echo '/usr/local/lib' >> /etc/ld.so.conf.d/hgate.conf  ;  ldconfig

[[ -f /etc/profile ]] && sed -i '/ulimit -c unlimited/'d  /etc/profile

echo 'ulimit -c unlimited' >>/etc/profile ; ulimit -c unlimited



sql.tar.bz2导入mysql数据库,设置密码:ftznsy888...

数据库修改
shouyou
sy_zones

fentiansj
zone_msg


安卓修改位置
assets\bin\Data

b1f39d1393ec4324e831bd471f4adbed
您需要登录后才可以回帖 登录 | 加入网站

本版积分规则