{"id":23,"date":"2022-01-25T17:35:55","date_gmt":"2022-01-25T09:35:55","guid":{"rendered":"https:\/\/blog.zjia.me\/?p=23"},"modified":"2026-06-19T17:39:52","modified_gmt":"2026-06-19T09:39:52","slug":"%e5%9f%ba%e4%ba%8etrinitycore%e7%9a%84wow%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=23","title":{"rendered":"\u57fa\u4e8eTrinityCore\u7684wow\u5b89\u88c5"},"content":{"rendered":"<p>\u73af\u5883\uff1adebian11<\/p>\n<h2>\u53c2\u8003\uff1a<\/h2>\n<p><code>https:\/\/trinitycore.atlassian.net\/wiki\/spaces\/tc\/pages\/10977309\/Linux+Core+Installation<\/code><\/p>\n<h2>\u8981\u6c42<\/h2>\n<pre><code>Processor with SSE2 support\nBoost \u2265 1.67\nMySQL \u2265 5.7.0\nOpenSSL = 1.x.x\nCMake \u2265 3.13.4\nClang  \u2265 5 (heavy recommended, especially on master branch) or GCC \u2265 7.1.0\nzlib \u2265 1.2.7<\/code><\/pre>\n<h2>\u5b89\u88c5\u73af\u5883<\/h2>\n<p>Debian 10.x (you will need to use su to install the packages)<\/p>\n<pre><code>apt-get update\napt-get install git clang cmake make gcc g++ libmariadbclient-dev-compat libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mariadb-server p7zip default-libmysqlclient-dev\nupdate-alternatives --install \/usr\/bin\/cc cc \/usr\/bin\/clang 100\nupdate-alternatives --install \/usr\/bin\/c++ c++ \/usr\/bin\/clang 100<\/code><\/pre>\n<h2>\u521b\u5efa\u7528\u6237<\/h2>\n<p><code>sudo su - &lt;username&gt;<\/code><\/p>\n<h2>\u4e0b\u8f7d\u4ee3\u7801<\/h2>\n<pre><code>3.3.5\u7248\u672c\n\ncd \/home\/wow\ngit clone -b 3.3.5 git:\/\/github.com\/TrinityCore\/TrinityCore.git<\/code><\/pre>\n<h2>\u7f16\u8bd1<\/h2>\n<pre><code>cd TrinityCore\nmkdir build\ncd build\n\ncmake ..\/ -DCMAKE_INSTALL_PREFIX=\/home\/&lt;username&gt;\/server\nmake -j $(nproc) install\n[X\u4ee3\u8868CPU\u6838\u5fc3\u6570  CPU\u6838\u5fc3\u8d8a\u591a\u7f16\u8bd1\u8d8a\u5feb]\nmake -j X install\n\ncmake ..\/ -DCMAKE_INSTALL_PREFIX=\/home\/wow\/server\n# \u4e0b\u9762\u6b65\u9aa4\u53ef\u80fd\u65f6\u95f4\u6bd4\u8f83\u957f\uff0c\u53ef\u4ee5\u7528nohup\u6216\u8005screen\u6267\u884c\nmake -j $(nproc) install<\/code><\/pre>\n<p>\u7f16\u8bd1\u53ef\u80fd\u95ee\u9898<\/p>\n<pre><code>c++: fatal error: Killed signal terminated program cc1plus\ncompilation terminated.<\/code><\/pre>\n<p>\u589e\u52a0swap\u5185\u5b58<\/p>\n<pre><code>1.\u5b89\u88c55.7 MYSQL\nwget http:\/\/repo.mysql.com\/mysql-apt-config_0.8.13-1_all.deb\napt install -y gnupg\nsudo dpkg -i mysql-apt-config_0.8.13-1_all.deb\nsudo dpkg-reconfigure mysql-apt-config\nsudo apt update\nsudo apt install mysql-server\n\u914d\u7f6emysql\u8fdc\u7a0b\u767b\u5f55\nmysql_secure_installation\nmysql -u root -p\nGRANT ALL PRIVILEGES ON *.* TO root@%IDENTIFIED BY 123123 WITH GRANT OPTION;\n\u4f7f\u7528mysql\u5de5\u5177\u767b\u5f55mysql\u6267\u884cwiki\u67e5\u8be2\u8bed\u53e5[\u6253\u5f00\u4e0b\u9762\u94fe\u63a5\u628a\u6307\u4ee4\u5168\u590d\u5236\u5230mysql\u67e5\u8be2\u91cc\u6267\u884c]\nhttps:\/\/github.com\/TrinityCore\/TrinityCore\/blob\/3.3.5\/sql\/create\/create_mysql.sql\n\u4e0b\u8f7d\u6700\u65b0\u6570\u636e\u5e93\u5305\nhttps:\/\/github.com\/TrinityCore\/TrinityCore\/releases\n2.\u5b89\u88c5\u7f16\u8bd1\u73af\u5883\napt-get install git clang cmake make gcc g++ libmariadbclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev p7zip default-libmysqlclient-dev\nupdate-alternatives --install \/usr\/bin\/cc cc \/usr\/bin\/clang 100\nupdate-alternatives --install \/usr\/bin\/c++ c++ \/usr\/bin\/clang 100\n\n\u67e5\u770b\u78c1\u76d8\u7684\u4f7f\u7528\u60c5\u51b5\ndf -lh\n\ncp -r  \u9012\u5f52\u53ef\u4ee5\u590d\u5236\u6587\u4ef6\u91cc\u9762\u7684\ncp -R \u53ea\u590d\u5236\u6587\u4ef6\u5939\n\n4.\u9632\u706b\u5899\u767d\u540d\u5355\u7aef\u53e3\nFTP\u7aef\u53e3\niptables -A INPUT -p tcp --dport 21 -j ACCEPT\niptables -A OUTPUT -p tcp --sport 21 -j ACCEPT\nMYSQL\u7aef\u53e3\niptables -A INPUT -p tcp --dport 3306 -j ACCEPT\niptables -A OUTPUT -p tcp --sport 3306 -j ACCEPT\n\u9b54\u517d\u767b\u5f55\u7aef\u53e3\niptables -A INPUT -p tcp --dport 3724 -j ACCEPT\niptables -A OUTPUT -p tcp --sport 3724 -j ACCEPT\n\u9b54\u517d\u670d\u52a1\u7aef\u7aef\u53e3\niptables -A INPUT -p tcp --dport 8085 -j ACCEPT\niptables -A OUTPUT -p tcp --sport 8085 -j ACCEPT\n\n\u66f4\u6362apt\u6e90\n\nnano \/etc\/apt\/sources.list\n\n\u7528#\u6ce8\u91ca\u6389\u539f\u6765\u7684\n\n\u52a0\u5165\u4e00\u4e0b\u8bb0\u5f55\n\ndeb https:\/\/mirrors.aliyun.com\/debian  stable main contrib non-free\ndeb https:\/\/mirrors.aliyun.com\/debian  stable-updates main contrib non-free\n\nvim \u4e0d\u80fd\u7c98\u8d34\n1. \u7f16\u8f91 vim \u7684\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\nvim \/usr\/share\/vim\/vim80\/defaults.vim\n2. \u8f6c\u81f3\u7b2c 70 \u884c\uff0c\u627e\u5230\uff1a\nif has(&#039;mouse&#039;)\n    set mouse=a\nendif\n3. \u5c06 set mouse=a \u6539\u4e3a\uff1aset mouse-=a\n4. \u8f93\u5165 :wq \u4fdd\u5b58\u5373\u53ef\u751f\u6548\u3002\n\ndebian11\n\u5b89\u88c5ssh\n\u8bbe\u7f6e \u5f00\u542f\u8fdc\u7a0b\nvim \/etc\/ssh\/sshd_config\nPermitRootLogin yes\n\u91cd\u542f\u914d\u7f6e\n\/etc\/init.d\/ssh restart\n\n3.\u5f00\u59cb\u7f16\u8bd1\n\u767b\u5f55\u7f16\u8bd1\u8d26\u53f7\nsu wow\ncd ~\/\n\n\u83b7\u53d6\u4ee3\u7801\ngit clone -b 3.3.5 git:\/\/github.com\/TrinityCore\/TrinityCore.git\n\n\u5730\u56fe\u5236\u4f5c\ngame\u76ee\u5f55\uff0c\u6e38\u620f\u5ba2\u6237\u7aef\u76ee\u5f55\nDBC and Maps files\n\/home\/wow\/server\/bin\/mapextractor\nmkdir \/home\/wow\/server\/data\ncp -r dbc maps \/home\/wow\/server\/data\n\nVisual Maps (aka vmaps)\ncd &lt;your WoW client directory&gt;\n\/home\/&lt;username&gt;\/server\/bin\/vmap4extractor\nmkdir vmaps\n\/home\/&lt;username&gt;\/server\/bin\/vmap4assembler Buildings vmaps\ncp -r vmaps \/home\/&lt;username&gt;\/server\/data\n\nMovement MapsMovement Maps (aka mmaps)\ncd &lt;your WoW client directory&gt;\nmkdir mmaps\n\/home\/&lt;username&gt;\/server\/bin\/mmaps_generator\ncp -r mmaps \/home\/&lt;username&gt;\/server\/data\n\n\u542f\u52a8\nscreen -S world\n\/home\/wow\/server\/bin\/worldserver\n\nscreen -S auth\n\/home\/wow\/server\/bin\/authserver\n\n\u521d\u59cb\u5316\u6570\u636e\u5e93\nmysql_secure_installation\n\n\/etc\/mysql\/mariadb.conf.d# vim 50-server.cnf\n\u4fee\u6539ip\n0.0.0.0\nservice mariadb restart\n\n\u3001\u9009\u9879\u53c2\u6570\n\n    -c\uff1a\uff08create\uff09\u5efa\u7acb\u6253\u5305\u6587\u4ef6\n\n    -t \uff1a\u67e5\u770b\u6253\u5305\u6587\u4ef6\u7684\u5185\u5bb9\u542b\u6709\u54ea\u4e9b\u6587\u4ef6\n\n   -x \uff1a\u89e3\u6253\u5305\u6216\u89e3\u538b\u7f29\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u642d\u914d-C(\u5927\u5199)\u5728\u7279\u5b9a\u76ee\u5f55\u89e3\u5f00\n\n    -j \uff1a\u901a\u8fc7bzip2\u7684\u652f\u6301\u8fdb\u884c\u538b\u7f29\/\u89e3\u538b\u7f29\uff0c\u6b64\u65f6\u6587\u4ef6\u6700\u597d\u4e3a*.tar.bz2\n\n   -z \uff1a\u901a\u8fc7gzip\u7684\u652f\u6301\u8fdb\u884c\u538b\u7f29\/\u89e3\u538b\u7f29\uff0c\u6b64\u65f6\u6587\u4ef6\u6700\u597d\u4e3a*.tar.gz\n\n   -v \uff1a\u5728\u538b\u7f29\/\u89e3\u538b\u7f29\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5c06\u6b63\u5728\u5904\u7406\u7684\u6587\u4ef6\u540d\u663e\u793a\u51fa\u6765\n\n   -f filename\uff1a-f \u540e\u9762\u8ddf\u5904\u7406\u540e\u6587\u4ef6\u7684\u5168\u540d\u79f0\uff08\u8def\u5f84+\u6587\u4ef6\u540d+\u540e\u7f00\u540d\uff09\n\n   -C \u76ee\u5f55\uff1a\u8fd9\u4e2a\u9009\u9879\u7528\u5728\u89e3\u538b\u7f29\uff0c\u82e5\u8981\u5728\u7279\u5b9a\u76ee\u5f55\u89e3\u538b\u7f29\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u9009\u9879\n\n   -p\uff1a\u4fdd\u7559\u5907\u4efd\u6570\u636e\u7684\u539f\u672c\u6743\u9650\u4e0e\u5c5e\u6027\uff0c\u5e38\u7528\u4e8e\u5907\u4efd(-c)\u91cd\u8981\u7684\u914d\u7f6e\u6587\u4ef6\n\n   --exclude=FILE:\u5728\u538b\u7f29\u7684\u8fc7\u7a0b\u4e2d,\u4e0d\u8981\u5c06\u90a3\u4e9b\u6587\u4ef6\u6253\u5305\n\n   \u6ce8\u610f-c, -t, -x \u4e0d\u53ef\u540c\u65f6\u51fa\u73b0\u5728\u4e00\u4e32\u6307\u4ee4\u5217\u4e2d\u3002\n\u538b\u7f29\ntar -czvf server-wow.tar.gz server\n\u89e3\u538b\ntar -xzvf myetc.tar.gz\n\nmysqldump -h \u8fdc\u7a0b\u670d\u52a1\u5668IP\u6216\u57df\u540d -u \u8fdc\u7aef\u6570\u636e\u5e93\u8d26\u53f7 -p&#039;\u8fdc\u7aef\u6570\u636e\u5e93\u5bc6\u7801&#039; --default-character-set=utf8 \u6570\u636e\u5e93\u540d\u5b57 &gt; \/tmp\/database_db.sql\n<\/code><\/pre>\n<h2>\u521b\u5efa\u6570\u636e\u5e93<\/h2>\n<p>\u53c2\u8003\uff1a<br \/>\n<a href=\"https:\/\/github.com\/TrinityCore\/TrinityCore\/blob\/3.3.5\/sql\/create\/create_mysql.sql\">https:\/\/github.com\/TrinityCore\/TrinityCore\/blob\/3.3.5\/sql\/create\/create_mysql.sql<\/a><\/p>\n<pre><code>CREATE USER &#039;trinity&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;trinity&#039; WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0;\n\nGRANT USAGE ON * . * TO &#039;trinity&#039;@&#039;localhost&#039;;\n\nCREATE DATABASE <code>world<\/code> DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\n\nCREATE DATABASE <code>characters<\/code> DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\n\nCREATE DATABASE <code>auth<\/code> DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\n\nGRANT ALL PRIVILEGES ON <code>world<\/code> . * TO &#039;trinity&#039;@&#039;localhost&#039; WITH GRANT OPTION;\n\nGRANT ALL PRIVILEGES ON <code>characters<\/code> . * TO &#039;trinity&#039;@&#039;localhost&#039; WITH GRANT OPTION;\n\nGRANT ALL PRIVILEGES ON <code>auth<\/code> . * TO &#039;trinity&#039;@&#039;localhost&#039; WITH GRANT OPTION;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883\uff1adebian11 \u53c2\u8003\uff1a https:\/\/trinitycore.atlassian.net\/wiki\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[136],"tags":[75,146],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-notes-misc","tag-trinitycore","tag-wow"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":1,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":2010,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/2010"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}