<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>私服 &#8211; Daoker小站</title>
	<atom:link href="https://daoker.cc/category/%E7%A7%81%E6%9C%8D/feed" rel="self" type="application/rss+xml" />
	<link>https://daoker.cc</link>
	<description>个人随笔小记</description>
	<lastBuildDate>Sat, 23 Mar 2024 09:30:30 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://daoker.cc/wp-content/uploads/2022/08/cropped-daoker_blog_s-32x32.png</url>
	<title>私服 &#8211; Daoker小站</title>
	<link>https://daoker.cc</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>搞机常用命令</title>
		<link>https://daoker.cc/daokerto342.html</link>
					<comments>https://daoker.cc/daokerto342.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Thu, 08 Sep 2022 03:23:25 +0000</pubDate>
				<category><![CDATA[搞机]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[玩docker]]></category>
		<category><![CDATA[私服]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=342</guid>

					<description><![CDATA[日常玩机过程中不断积累的常用命令 宝塔纯净版 来源网站： https://www.hostcli.com/ c [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p></p>
<cite>日常玩机过程中不断积累的常用命令</cite></blockquote>



<h2 class="wp-block-heading">宝塔纯净版</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>来源网站：</p>
<cite><a href="https://www.hostcli.com/" target="_blank" rel="noreferrer noopener">https://www.hostcli.com/</a></cite></blockquote>



<p>centos</p>



<pre class="wp-block-code"><code>yum install -y wget &amp;&amp; wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh &amp;&amp; sh install.sh</code></pre>



<p>ubuntu/debian</p>



<pre class="wp-block-code"><code>wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh &amp;&amp; bash install.sh</code></pre>



<h2 class="wp-block-heading">Docker</h2>



<pre class="wp-block-code"><code>sudo apt update
sudo apt upgrade 
sudo apt install docker
sudo apt install docker-compose
#创建daoker_net网桥
docker network create daoker_net
</code></pre>



<h3 class="wp-block-heading">docker开启ipv6支持</h3>



<pre class="wp-block-code"><code>cat &gt; /etc/docker/daemon.json &lt;&lt; EOF
{
    "log-driver": "json-file",
    "log-opts": {
        "max-size": "20m",
        "max-file": "3"
    },
    "ipv6": true,
    "fixed-cidr-v6": "fd00:dead:beef:c0::/80",
    "experimental":true,
    "ip6tables":true
}
EOF
</code></pre>



<h3 class="wp-block-heading">portainer</h3>



<p><a href="https://docs.portainer.io/start/install/server/docker/linux">https://docs.portainer.io/start/install/server/docker/linux</a></p>



<pre class="wp-block-code"><code>docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always --privileged=true -v /var/run/docker.sock:/var/run/docker.sock -v /docker/portainer_data:/data portainer/portainer-ce:latest
</code></pre>



<p>portainer管理面板： <a href="https://ip:9443">https://ip:9443</a></p>



<h3 class="wp-block-heading"><a href="https://nginxproxymanager.com/guide/#quick-setup"><strong>Nginx Proxy Manager</strong></a> </h3>



<p>貌似也有本地版的，但是对于arm不兼容，docker版的ARM和x86都可用，docker-compose 构建：</p>



<p>管理后台:  <a href=" http://ip:81"> http://ip:81</a></p>



<p>Default Admin User:   </p>



<ul class="wp-block-list">
<li>Email: admin@example.com</li>



<li> Password: changeme</li>
</ul>



<pre class="wp-block-code"><code>version: '2'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    environment:
      DB_MYSQL_HOST: ""
      DB_MYSQL_PORT: 
      DB_MYSQL_USER: ""
      DB_MYSQL_PASSWORD: ""
      DB_MYSQL_NAME: ""
    volumes:
      - /docker/npm/data:/data
      - /docker/npm/letsencrypt:/etc/letsencrypt
  db:
    image: 'jc21/mariadb-aria:latest'
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: ''
      MYSQL_DATABASE: ''
      MYSQL_USER: ''
      MYSQL_PASSWORD: ''
    volumes:
      - /docker/npm/data/mysql:/var/lib/mysql
networks:
  default:
    name: daoker_net
    external: true</code></pre>



<h3 class="wp-block-heading">WordPress</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p></p>
<cite>NPM中已经安装了mysql,这里也可以把其中的mysql的部分删除</cite></blockquote>



<pre class="wp-block-code"><code>version: "3"
services:
   mysql:
     image: mysql
     ports:
       - "31306:3306"
     networks:
       - persist    
     environment:
       - "MYSQL_ROOT_PASSWORD="
       - "MYSQL_PASSWORD="
       - "MYSQL_USER="
       - "MYSQL_DATABASE="
   wordpress:
     image: wordpress
     ports:
       - "9001:80"
     networks:
       - persist    
     environment:
       - "WORDPRESS_DB_NAME="
       - "WORDPRESS_DB_USER="
       - "WORDPRESS_DB_PASSWORD="
       - "WORDPRESS_DB_HOST="
networks:
  persist:
    external:
      name: daoker_net</code></pre>



<h3 class="wp-block-heading">Alist</h3>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="alist-org" data-project="alist"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/alist-org/alist" target="_blank" rel="noopener"><span class="github-info-card-name">alist-org/alist</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p>安装时正好遇到作者更新了最新版，结果发觉bug很多，所以手动安装了上一个版本</p>



<pre class="wp-block-code"><code>docker run -d --restart=always -v /docker/alist:/opt/alist/data  -p 5244:5244 --name="alist" xhofe/alist:v2.6.4</code></pre>



<p>nginx反代信息：</p>



<pre class="wp-block-code"><code>location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Range $http_range;
	  proxy_set_header If-Range $http_if_range;
    proxy_redirect off;
    proxy_pass http://alist:5244;
    # the max size of file to upload
    client_max_body_size 20000m;
}
</code></pre>



<p>初始密码请查看日志输出：</p>



<pre class="wp-block-code"><code>docker logs alist<br><em># 或者</em><br>docker exec -it alist ./alist -password</code></pre>




<span style="color: red;">温馨提示：</span>此处内容仅管理员可见！




<h3 class="wp-block-heading">x-ui</h3>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="vaxilu" data-project="x-ui"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/vaxilu/x-ui" target="_blank" rel="noopener"><span class="github-info-card-name">vaxilu/x-ui</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<h4 class="wp-block-heading">docker版</h4>



<p>编译：</p>



<p>首先从GitHub git clone下来，然后进入到文件夹里docker bulid，最后到要安装的目录里docker run</p>



<pre class="wp-block-code"><code>git clone https://github.com/vaxilu/x-ui.git
cd x-ui
docker build -t x-ui .
#建立的镜像名为x-ui
mkdir -p /docker/x-ui &amp;&amp; cd /docker/x-ui
docker run -itd --network=host \
    -v /docker/x-ui/db/:/etc/x-ui/ \
    -v /docker/x-ui/cert/:/root/cert/ \
    --name x-ui --restart=unless-stopped \
    x-ui

docker run -itd --network daoker_net -p 666:54321 58253:58253 -v /docker/x-ui/db/:/etc/x-ui/ -v /docker/x-ui/cert/:/root/cert/ --name x-ui --restart=unlessstopped x-ui</code></pre>



<p>默认用户名、密码：admin</p>



<h4 class="wp-block-heading">一键安装带tg提醒版</h4>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="FranzKafkaYu" data-project="x-ui"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/FranzKafkaYu/x-ui" target="_blank" rel="noopener"><span class="github-info-card-name">FranzKafkaYu/x-ui</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<pre class="wp-block-code"><code>bash &lt;(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)</code></pre>



<h3 class="wp-block-heading">speedtest</h3>



<p>支持ARM和x86</p>



<pre class="wp-block-code"><code>docker run -d --name=speedtest-x --restart=always -p 12345:80 stilleshan/speedtest-x</code></pre>



<h3 class="wp-block-heading">青龙面板</h3>



<pre class="wp-block-code"><code>docker run -dit \
  -v docker/ql/data:/ql/data \
  -p 5700:5700 \
  --name qinglong \
  --hostname qinglong \
  --restart unless-stopped \
  whyour/qinglong:latest</code></pre>



<pre class="wp-block-code"><code>docker run -dit \
-v $pwd/ql/config:/ql/config \
-v $pwd/ql/log:/ql/log \
-v $pwd/ql/db:/ql/db \
-v $pwd/ql/scripts:/ql/scripts \
-v $pwd/ql/jbot:/ql/jbot \
-p 5700:5700 \
-e ENABLE_HANGUP=true \
-e ENABLE_WEB_PANEL=true \
--name qinglong \
--hostname qinglong \
--restart always \
whyour/qinglong:latest</code></pre>



<h3 class="wp-block-heading">远程ubuntu桌面</h3>



<pre class="wp-block-code"><code>docker run -d -p 6080:80 -v /docker/ubuntudesktop:/workspace:rw -e HTTP_PASSWORD=415408807 -e RESOLUTION=1280x720 --name ubuntu-novnc fredblgr/ubuntu-novnc:20.04
</code></pre>



<h3 class="wp-block-heading">远程chrome浏览器</h3>



<p>访问远程局域网的神器</p>



<pre class="wp-block-code"><code>sudo docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/chrome:1.13.0</code></pre>



<figure class="wp-block-table"><table><tbody><tr><td>管理界面</td><td>https://IP:6901</td></tr><tr><td>用户名</td><td>kasm_user</td></tr><tr><td>密码</td><td>password</td></tr></tbody></table><figcaption class="wp-element-caption">这里的IP可以用zerotier进行内网穿透</figcaption></figure>



<h2 class="wp-block-heading">综合工具箱</h2>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="BlueSkyXN" data-project="SKY-BOX"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/BlueSkyXN/SKY-BOX" target="_blank" rel="noopener"><span class="github-info-card-name">BlueSkyXN/SKY-BOX</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<pre class="wp-block-code"><code>wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh &amp;&amp; chmod +x box.sh &amp;&amp; clear &amp;&amp; ./box.sh</code></pre>



<h2 class="wp-block-heading">重装</h2>



<p>实测甲骨文ubuntu  -&gt; Debian 成功，Debian -&gt; ubuntu 失败</p>



<pre class="wp-block-code"><code>bash &lt;(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 123456 -port 22</code></pre>



<p>系统参数</p>



<p><strong>-d 10&nbsp;&nbsp;</strong>【7、8、9、10，11】Debian</p>



<p><strong>-u 20.04 </strong>【14.04、16.04、18.04、20.04】Ubuntu</p>



<p>密码参数，可以改成别的</p>



<p><strong>-p 12345</strong></p>



<p>端口参数</p>



<p>port&nbsp;<strong>22</strong></p>



<p>BBRPLUS四合一脚本</p>



<pre class="wp-block-code"><code>wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" &amp;&amp; chmod +x tcp.sh &amp;&amp; ./tcp.sh</code></pre>



<h2 class="wp-block-heading">命令行代理</h2>



<p><a href="https://zhuanlan.zhihu.com/p/166375631">https://zhuanlan.zhihu.com/p/166375631</a></p>



<h2 class="wp-block-heading">笔记</h2>



<h3 class="wp-block-heading">哪吒面板相关</h3>



<p>准备迁移服务器时才发现，我哪吒面板是搭建在国外洛杉矶的服务器上，但是哪吒面板的域名指向的是国内的阿里云的服务器，然后反代到洛杉矶的服务器上，我也想不起来当初为啥要这么做了。</p>



<p>阿里云服务器上npm里的设置：</p>



<figure class="wp-block-image size-large is-resized"><img fetchpriority="high" decoding="async" width="1024" height="223" src="https://daoker.cc/wp-content/uploads/2024/02/image-9-1024x223.png" alt="" class="wp-image-1233" style="width:848px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-9-1024x223.png 1024w, https://daoker.cc/wp-content/uploads/2024/02/image-9-300x65.png 300w, https://daoker.cc/wp-content/uploads/2024/02/image-9-768x167.png 768w, https://daoker.cc/wp-content/uploads/2024/02/image-9.png 1295w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="528" height="511" src="https://daoker.cc/wp-content/uploads/2024/02/image-10.png" alt="" class="wp-image-1234" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-10.png 528w, https://daoker.cc/wp-content/uploads/2024/02/image-10-300x290.png 300w" sizes="(max-width: 528px) 100vw, 528px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="498" height="374" src="https://daoker.cc/wp-content/uploads/2024/02/image-11.png" alt="" class="wp-image-1235" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-11.png 498w, https://daoker.cc/wp-content/uploads/2024/02/image-11-300x225.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="512" height="675" src="https://daoker.cc/wp-content/uploads/2024/02/image-12.png" alt="" class="wp-image-1236" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-12.png 512w, https://daoker.cc/wp-content/uploads/2024/02/image-12-228x300.png 228w" sizes="auto, (max-width: 512px) 100vw, 512px" /></figure>



<pre class="wp-block-code"><code>#PROXY-START/
location / {
    proxy_pass http://204.44.94.242:8008;
    proxy_set_header Host $http_host;
    proxy_set_header      Upgrade $http_upgrade;
}
location ~ ^/(ws|terminal/.+)$  {
    proxy_pass http://204.44.94.242:8008;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $http_host;
}
#PROXY-END/</code></pre>



<h3 class="wp-block-heading">debian开机自动挂载目录</h3>



<p>1.查看uuid</p>



<pre class="wp-block-code"><code>blkid</code></pre>



<p>2.配置开机自动挂载</p>



<pre class="wp-block-code"><code>sudo vim /etc/fstab</code></pre>



<p>跟着原有的在末尾填入挂载信息</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="805" height="445" src="http://daoker.cc/wp-content/uploads/2022/11/image-20.png" alt="" class="wp-image-676" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-20.png 805w, https://daoker.cc/wp-content/uploads/2022/11/image-20-300x166.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-20-768x425.png 768w" sizes="auto, (max-width: 805px) 100vw, 805px" /></figure>



<p>第一个参数是磁盘uuid，第二个参数是挂载在哪里，第三个参数是磁盘格式，第四个参数是默认，第五个参数是是否备份，0不备份，1或2备份，第六个参数是是否检查磁盘，1表示检查</p>



<p>3.验证挂载是否成功，无输出就是成功</p>



<pre class="wp-block-code"><code>mount -a</code></pre>



<h3 class="wp-block-heading">ubuntu相关</h3>



<p>1.查看cpu当前频率</p>



<pre class="wp-block-code"><code> <code>cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq</code> </code></pre>



<p></p>



<p>2.合上盖子不挂起</p>



<p>把/etc/systemd/logind.conf中的#HandleLidSwitch=suspend改成ingnroe,然后使用services systemd-logind restart重启服务</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto342.html/feed</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>亚马逊（AWS）光帆搭建《仙剑问情》3D仙侠手游</title>
		<link>https://daoker.cc/daokerto223.html</link>
					<comments>https://daoker.cc/daokerto223.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Sat, 27 Aug 2022 01:22:28 +0000</pubDate>
				<category><![CDATA[搞机]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[私服]]></category>
		<guid isPermaLink="false">https://daoker.eu.org/?p=223</guid>

					<description><![CDATA[声明：本文资源均搜集自互联网，版权归原作者！仅供测试使用，请与下载后24小时内删除！禁止用于任何商业用途！ 引 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>声明：本文资源均搜集自互联网，版权归原作者！仅供测试使用，请与下载后24小时内删除！禁止用于任何商业用途！</p>



<h2 class="wp-block-heading">引言</h2>



<p>最近闲置的白嫖VPS有点多，正好觉得有点时间，所以就想着能不能在服务器上搭建个私服，于是就查阅了大量资料，找到了这个手游。玩了下，感觉游戏和很多rpg游戏一样，战斗僵硬，像素画质，就是做任务，打怪，升级，PK，氪装备，这样的游戏玩过太多了，现在已经肝不动了，比起稀烂的游戏，我觉得搭建过程更好玩。</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://daoker.cc/wp-content/uploads/2022/08/image-48-1024x576.png" alt="" class="wp-image-225" width="272" height="153" srcset="https://daoker.cc/wp-content/uploads/2022/08/image-48-1024x576.png 1024w, https://daoker.cc/wp-content/uploads/2022/08/image-48-300x169.png 300w, https://daoker.cc/wp-content/uploads/2022/08/image-48-768x432.png 768w, https://daoker.cc/wp-content/uploads/2022/08/image-48.png 1280w" sizes="auto, (max-width: 272px) 100vw, 272px" /></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://daoker.cc/wp-content/uploads/2022/08/image-47-1024x576.png" alt="" class="wp-image-224" width="278" height="156" srcset="https://daoker.cc/wp-content/uploads/2022/08/image-47-1024x576.png 1024w, https://daoker.cc/wp-content/uploads/2022/08/image-47-300x169.png 300w, https://daoker.cc/wp-content/uploads/2022/08/image-47-768x432.png 768w, https://daoker.cc/wp-content/uploads/2022/08/image-47.png 1280w" sizes="auto, (max-width: 278px) 100vw, 278px" /></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://daoker.cc/wp-content/uploads/2022/08/image-49-1024x576.png" alt="" class="wp-image-226" width="278" height="156" srcset="https://daoker.cc/wp-content/uploads/2022/08/image-49-1024x576.png 1024w, https://daoker.cc/wp-content/uploads/2022/08/image-49-300x169.png 300w, https://daoker.cc/wp-content/uploads/2022/08/image-49-768x432.png 768w, https://daoker.cc/wp-content/uploads/2022/08/image-49.png 1280w" sizes="auto, (max-width: 278px) 100vw, 278px" /></figure>
</div>
</div>



<p>源码下载地址：<p class="reply-to-read">温馨提示: 此处内容需要在文末<a href="#respond" title="评论本文">评论本文</a>并刷新页面后才能查看.</p></p>



<h2 class="wp-block-heading">搭建教程</h2>



<h3 class="wp-block-heading">服务端</h3>



<p>实测在亚马逊免费3个月的光帆上搭建并完美运行，机房选择新加坡，延迟在100ms上下，还算不错，环境为centos7 +Nginx1.18 +mysql5.5+ php5.4</p>



<p>0.把源码里的server.zip包里的所以的IP地址为“192.168.200.129”的代码替换为你服务器的IP，推荐使用notepad++在文件中查找和替换的功能，一共替换19处，替换完成后重新打包。</p>



<p>1 .安装宝塔纯净版</p>



<pre class="wp-block-code"><code>yum install -y wget &amp;&amp; wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh &amp;&amp; sh install.sh</code></pre>



<p>2 .登录宝塔面板，一键部署Nginx1.18 +mysql5.5+ php5.4</p>



<p>3.在宝塔里开放65535端口</p>



<p>4.关闭防火墙</p>



<pre class="wp-block-code"><code>systemctl stop firewalld.service
systemctl disable firewalld.service</code></pre>



<p>5.上传之前修改并打包过的<mark><code>server.zip</code></mark>到宝塔文件<mark><code>/</code></mark>根目录下并解压</p>



<pre class="wp-block-code"><code>cd /
unzip server.zip</code></pre>



<p>6.给予服务器根目录解压后的文件<mark><code>777</code></mark>权限：</p>



<pre class="wp-block-code"><code>chmod -R 777 /data/
chmod -R 777 /www/wwwroot/game</code></pre>



<p>7.输入命令进行环境配置：</p>



<pre class="wp-block-code"><code>ldconfig</code></pre>



<p>8.在宝塔面板里设置数据库<mark><code>root</code></mark>密码为：<mark><code>123456</code></mark>，然后来到<mark><code>mysql</code></mark>数据库的<mark><code>配置修改</code></mark>在第<mark><code>23行</code></mark>添加参数：<mark><code>lower_case_table_names=1</code></mark>，最后保存并重启数据库</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="http://daoker.cc/wp-content/uploads/2022/08/image-53.png" alt="" class="wp-image-252" width="814" height="393" srcset="https://daoker.cc/wp-content/uploads/2022/08/image-53.png 927w, https://daoker.cc/wp-content/uploads/2022/08/image-53-300x145.png 300w, https://daoker.cc/wp-content/uploads/2022/08/image-53-768x372.png 768w" sizes="auto, (max-width: 814px) 100vw, 814px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="952" height="844" src="http://daoker.cc/wp-content/uploads/2022/08/image-54.png" alt="" class="wp-image-253" srcset="https://daoker.cc/wp-content/uploads/2022/08/image-54.png 952w, https://daoker.cc/wp-content/uploads/2022/08/image-54-300x266.png 300w, https://daoker.cc/wp-content/uploads/2022/08/image-54-768x681.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></figure>



<p>9.执行命令导入数据库，然后等结束后回到宝塔面板，在<mark><code>数据库</code></mark>目录页面点击<mark><code>从服务器获取</code></mark>，一共5个数据库就正常。</p>



<pre class="wp-block-code"><code>cd /data
./sk</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="288" src="http://daoker.cc/wp-content/uploads/2022/08/image-55-1024x288.png" alt="" class="wp-image-254" srcset="https://daoker.cc/wp-content/uploads/2022/08/image-55-1024x288.png 1024w, https://daoker.cc/wp-content/uploads/2022/08/image-55-300x84.png 300w, https://daoker.cc/wp-content/uploads/2022/08/image-55-768x216.png 768w, https://daoker.cc/wp-content/uploads/2022/08/image-55-1536x433.png 1536w, https://daoker.cc/wp-content/uploads/2022/08/image-55.png 1566w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>10.在宝塔面板新建一个网站，地址写自己的服务器<mark><code>IP</code></mark>地址即可，网站目录：<mark><code>\www\wwwroot\game</code></mark></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="http://daoker.cc/wp-content/uploads/2022/08/image-56.png" alt="" class="wp-image-255" width="655" height="584" srcset="https://daoker.cc/wp-content/uploads/2022/08/image-56.png 944w, https://daoker.cc/wp-content/uploads/2022/08/image-56-300x268.png 300w, https://daoker.cc/wp-content/uploads/2022/08/image-56-768x686.png 768w" sizes="auto, (max-width: 655px) 100vw, 655px" /></figure>



<p>11.设置网站伪静态：</p>



<pre class="wp-block-code"><code>if (-f $request_filename/index.php){<br>rewrite (.<em>) $1/index.php; } location / { if (!-f $request_filename){ rewrite (.</em>)$ $1.php last;<br>break;<br>}<br>}</code></pre>



<h3 class="wp-block-heading">客户端</h3>



<p>1.安装JAVA JDK开发环境，参考这个帖子：<a href="https://west2.cn/2492.html" target="_blank" rel="noreferrer noopener">https://west2.cn/2492.html</a></p>



<p>2.把客户端的apk文件后缀改成zip，并找到以下文件，把客户端默认的<mark><code>IP</code></mark>地址<mark><code>192.168.200.129</code></mark>查找替换为你服务器的IP地址。需要对位的意思是说，默认ip为15位ip，你的ip每少一位就在最后加一个/，比如我的改成18.142.14.155//，后面的2个斜杆就是为了补位的</p>



<pre class="wp-block-code"><code>\assets\bin\Data\b1f39d1393ec4324e831bd471f4adbed    #替换IP时需要对位
\assets\channel_config.json    #不需要对位</code></pre>



<p>3.修改好上述目录的文件后把后缀改回zip,并使用“apktool”或者“apk签名破解工具”重新签名即可</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="http://daoker.cc/wp-content/uploads/2022/08/无标题项目-1024x576.gif" alt="" class="wp-image-257" srcset="https://daoker.cc/wp-content/uploads/2022/08/无标题项目-1024x576.gif 1024w, https://daoker.cc/wp-content/uploads/2022/08/无标题项目-300x169.gif 300w, https://daoker.cc/wp-content/uploads/2022/08/无标题项目-768x432.gif 768w, https://daoker.cc/wp-content/uploads/2022/08/无标题项目-1536x864.gif 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>签名工具下载地址：<p class="reply-to-read">温馨提示: 此处内容需要在文末<a href="#respond" title="评论本文">评论本文</a>并刷新页面后才能查看.</p></p>



<p>在此备份一个在线证书制作网站https://www.170130.com/index/index/certificate.html，虽然本文并没有用到。</p>



<p>4.传到手机上安装并启动游戏，愉快玩耍吧。</p>



<h2 class="wp-block-heading">游戏管理</h2>



<h3 class="wp-block-heading">服务端 启动命令：</h3>



<pre class="wp-block-code"><code>#启动
cd /data/LS/ &amp;&amp; ./q
cd /data/server &amp;&amp; ./q

#关闭
cd /data/LS/ &amp;&amp; ./t
cd /data/server &amp;&amp; ./t

#端口查看命令
netstat -lntp</code></pre>



<h3 class="wp-block-heading">GM后台地址：</h3>



<pre class="wp-block-code"><code>http:&#47;&#47;ip/admin
GM码：west2.cn

在游戏设置里面看ID
元宝充值比例是 1:6480 并非1:1</code></pre>



<h3 class="wp-block-heading">其他相关文档：</h3>



<pre class="wp-block-code"><code>公告修改地址：
安卓：/www/wwwroot/game/9999/Server/gonggao
IOS：/www/wwwroot/game/ios1/Server/gonggao

GM码修改地址：
/www/wwwroot/game/admin/config.php

PS：
1、
EquipCollect 限时活动
Wing 翅膀
Horse 坐骑
newVipPrivi 会员
FashionSystem 时装
bizActivity 活动开始文件

2、
数据库密码
LS\bin\config.xml 16行40行
LS\bin\extgameconfig.xml 21，22行
LS\bin\infoconfig.xml  13
LS\bin\logindb.xml  3行
LS\bin\payconfig.xml  15 行
server\bin\config.xml  16.40行
server\bin\extgameconfig.xml 21.22
server\bin\infoconfig.xml 13 行
server\bin\logindb.xml 3行
server\bin\payconfig.xml 15行
www\wwwroot\stak.cn\user\login\config.php  7行
www\wwwroot\stak.cn\zhuce\config.php  7行</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto223.html/feed</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
