{"id":33740,"date":"2025-04-28T14:10:36","date_gmt":"2025-04-28T06:10:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/33740.html"},"modified":"2025-04-28T14:10:36","modified_gmt":"2025-04-28T06:10:36","slug":"%e9%ba%92%e9%ba%9f%e7%b3%bb%e7%bb%9f%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%89%88%e6%9c%acx86%e6%9e%b6%e6%9e%84arm%e6%9e%b6%e6%9e%84%e9%83%a8%e7%bd%b2%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/33740.html","title":{"rendered":"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b"},"content":{"rendered":"<h2>\u9e92\u9e9f\u7cfb\u7edfx86\u67b6\u6784\u9879\u76ee\u90e8\u7f72<\/h2>\n<h2>1\u3001\u5b89\u88c5jdk<\/h2>\n<p>\u89e3\u538bjdk<\/p>\n<p># \u89e3\u538bjdk<br \/>\ntar -zxvf jdk-8u441-linux-x64.tar.gz<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p># \u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\nvi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport JAVA_HOME&#061;\/opt\/java\/jdk1.8.0_441<br \/>\nexport CLASSPATH&#061;.:$JAVA_HOME\/bin\/<br \/>\nexport PATH&#061;.:$JAVA_HOME\/bin:$PATH<\/p>\n<p>\u591ajdk\u7248\u672c\u793a\u4f8b<\/p>\n<p>export JAVA_HOME&#061;\/opt\/jdk\/jdk1.8.0_172<br \/>\nexport CLASSPATH&#061;.:${JAVA_HOME}\/jre\/lib\/rt.jar:${JAVA_HOME}\/lib\/dt.jar:${JAVA_HOME}\/lib\/tools.jar<br \/>\nexport PATH&#061;$PATH:${JAVA_HOME}\/bin<\/p>\n<p># java17 environment<br \/>\nexport JAVA17_HOME&#061;\/opt\/jdk\/jdk-17.0.13<br \/>\nexport CLASSPATH&#061;.:$JAVA17_HOME\/bin\/<br \/>\nexport PATH&#061;.:$JAVA17_HOME\/bin:$PATH<\/p>\n<p># \u591a JDK \u7248\u672c\u793a\u4f8b\u5173\u952e&#xff08;\u8d77\u522b\u540d\u4ee5\u8fbe\u5230\u5171\u5b58\u76ee\u7684&#xff09;<br \/>\nalias java&#061;${JAVA_HOME}\/bin\/java<br \/>\nalias java17&#061;$JAVA17_HOME\/bin\/java<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\njava -version<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;\u786e\u8ba4\u914d\u7f6e\u5df2\u751f\u6548&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho $JAVA_HOME<br \/>\necho $PATH<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;\u786e\u8ba4\u914d\u7f6e\u5df2\u751f\u6548&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\njava17 -version (\u591aJDK \u7248\u672c\u793a\u4f8b&#xff0c;java17\u4e3aalias\u5904\u914d\u7f6e\u7684\u522b\u540d)<\/p>\n<h2>2\u3001\u5b89\u88c5mysql<\/h2>\n<p>\u89e3\u538bmysql<\/p>\n<p>tar -Jxvf mysql-8.0.31-linux-glibc2.17-x86_64-minimal.tar.xz<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u76ee\u5f55\u540d\u79f0<\/p>\n<p>mv mysql-8.0.31-linux-glibc2.17-x86_64-minimal mysql<\/p>\n<p>\u8fdb\u5165\u89e3\u538b\u540e\u7684\u76ee\u5f55<\/p>\n<p>cd mysql<\/p>\n<p>\u521b\u5efa\u6570\u636e\u5e93\u6587\u4ef6\u5b58\u653e\u7684\u6587\u4ef6\u5939\u3002\u8fd9\u4e2a\u6587\u4ef6\u5939\u5c06\u6765\u5b58\u653e\u6bcf\u4e2a\u6570\u636e\u5e93\u7684\u5e93\u6587\u4ef6<\/p>\n<p>mkdir mysqldb<\/p>\n<p>mysql\u5b89\u88c5\u76ee\u5f55\u8d4b\u4e88\u6743\u9650<\/p>\n<p>chmod -R 777 \/opt\/mysql<\/p>\n<p>\u521b\u5efamysql\u7ec4\u548c\u7528\u6237<\/p>\n<p>groupadd mysql<\/p>\n<p>\u521b\u5efa\u7528\u6237(-s \/bin\/false\u53c2\u6570\u6307\u5b9amysql\u7528\u6237\u4ec5\u62e5\u6709\u6240\u6709\u6743&#xff0c;\u800c\u6ca1\u6709\u767b\u5f55\u6743\u9650)<\/p>\n<p>useradd -r -g mysql -s \/bin\/false mysql<\/p>\n<p>** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**<\/p>\n<p>chown -R mysql:mysql .\/<\/p>\n<p>\u4fee\u6539mysql\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>vim \/etc\/my.cnf<\/p>\n<p>[mysqld]<br \/>\n# \u8bbe\u7f6e3306\u7aef\u53e3<br \/>\nport&#061;3306<br \/>\n# \u8bbe\u7f6emysql\u7684\u5b89\u88c5\u76ee\u5f55<br \/>\nbasedir&#061;\/opt\/mysql<br \/>\n# \u8bbe\u7f6emysql\u6570\u636e\u5e93\u7684\u6570\u636e\u7684\u5b58\u653e\u76ee\u5f55<br \/>\ndatadir&#061;\/opt\/mysql\/mysqldb<br \/>\n# \u5141\u8bb8\u6700\u5927\u8fde\u63a5\u6570<br \/>\nmax_connections&#061;10000<br \/>\n# \u5141\u8bb8\u8fde\u63a5\u5931\u8d25\u7684\u6b21\u6570\u3002\u8fd9\u662f\u4e3a\u4e86\u9632\u6b62\u6709\u4eba\u4ece\u8be5\u4e3b\u673a\u8bd5\u56fe\u653b\u51fb\u6570\u636e\u5e93\u7cfb\u7edf<br \/>\nmax_connect_errors&#061;10<br \/>\n# \u670d\u52a1\u7aef\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\u9ed8\u8ba4\u4e3aUTF8<br \/>\ncharacter-set-server&#061;utf8<br \/>\n# \u521b\u5efa\u65b0\u8868\u65f6\u5c06\u4f7f\u7528\u7684\u9ed8\u8ba4\u5b58\u50a8\u5f15\u64ce<br \/>\ndefault-storage-engine&#061;INNODB<br \/>\n# \u9ed8\u8ba4\u4f7f\u7528\u201cmysql_native_password\u201d\u63d2\u4ef6\u8ba4\u8bc1<br \/>\ndefault_authentication_plugin&#061;mysql_native_password<br \/>\n# \u5ffd\u7565\u5927\u5c0f\u5199<br \/>\nlower_case_table_names&#061;1<br \/>\n[mysql]<br \/>\n# \u8bbe\u7f6emysql\u5ba2\u6237\u7aef\u9ed8\u8ba4\u5b57\u7b26\u96c6<br \/>\ndefault-character-set&#061;utf8<br \/>\n[client]<br \/>\n# \u8bbe\u7f6emysql\u5ba2\u6237\u7aef\u8fde\u63a5\u670d\u52a1\u7aef\u65f6\u9ed8\u8ba4\u4f7f\u7528\u7684\u7aef\u53e3<br \/>\nport&#061;3306<br \/>\ndefault-character-set&#061;utf8<\/p>\n<p>\u8fdb\u5165mysql \u5b89\u88c5\u76ee\u5f55\u4e0b<\/p>\n<p>cd \/opt\/mysql\/bin\/<\/p>\n<p>\u5b89\u88c5mysql&#xff0c;\u5e76\u8bb0\u4f4f\u521d\u59cb\u5316\u968f\u673a\u5bc6\u7801 -aGfz#XhB0d&#061;<\/p>\n<p>.\/mysqld &#8211;initialize &#8211;console  <\/p>\n<p>\u8fdb\u5165\/opt\/mysql\/support-files\/\u76ee\u5f55<\/p>\n<p>cd \/opt\/mysql\/support-files\/<\/p>\n<p>**\u542f\u52a8mysql\u670d\u52a1 **<\/p>\n<p> .\/mysql.server start<\/p>\n<p>\u5982\u679c\u7b2c\u4e00\u6b21\u542f\u52a8&#xff0c;\u5f53\u521d\u59cb\u5316\u6267\u884c\u4f1a\u6709\u62a5\u9519&#xff0c;\u6b64\u65f6\u4e0d\u8981\u62c5\u5fc3&#xff0c;\u91cd\u65b0\u7ed9mysql\u5b89\u88c5\u76ee\u5f55\u8d4b\u4e88\u4e00\u4e0b\u6743\u9650\u540e&#xff0c;\u518d\u6b21\u6267\u884c<\/p>\n<p>chmod -R 777 \/opt\/mysql<br \/>\n.\/mysql.server start<\/p>\n<p>\u5c06mysql\u6dfb\u52a0\u5230\u7cfb\u7edf\u8fdb\u7a0b\u4e2d<\/p>\n<p>cp \/opt\/mysql\/support-files\/mysql.server \/etc\/init.d\/mysqld<\/p>\n<p>\u8bbe\u7f6emysql\u81ea\u542f\u52a8<\/p>\n<p>chmod &#043;x \/etc\/init.d\/mysqld<br \/>\nsystemctl enable mysqld<\/p>\n<p>\u767b\u5f55mysql (mysql -uroot -p\u2019-aGfz#XhB0d&#061;&#039;)<\/p>\n<p>mysql -uroot -p&#xff08;\u5907\u6ce8&#xff1a;\u8f93\u5165\u521a\u521a\u9ed8\u8ba4\u7684\u5bc6\u7801\u8981\u52a0\u4e0a\u5f15\u53f7&#xff09;<\/p>\n<p>\u6267\u884c\/opt\/mysql\/bin\/mysql -u root -p\u62a5\u9519\/opt\/mysql\/bin\/mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory<\/p>\n<p># \u68c0\u67e5\u7cfb\u7edf\u4e2d\u662f\u5426\u5df2\u6709 libtinfo.so.6<br \/>\nls \/lib\/x86_64-linux-gnu\/libtinfo.so.6<br \/>\n# \u5982\u679c\u6709&#xff0c;\u5c06\u5176\u8f6f\u94fe\u63a5\u4e3a libtinfo.so.5<br \/>\nsudo ln -s \/lib\/x86_64-linux-gnu\/libtinfo.so.6 \/lib\/x86_64-linux-gnu\/libtinfo.so.5<br \/>\n# \u7136\u540e\u5c1d\u8bd5\u518d\u6b21\u8fd0\u884c MySQL \u5ba2\u6237\u7aef&#xff1a;<br \/>\n\/opt\/mysql\/bin\/mysql -u root -p<\/p>\n<p>\u4fee\u6539root\u7528\u6237\u767b\u5f55\u5bc6\u7801<\/p>\n<p>alter user &#039;root&#039;&#064;&#039;localhost&#039; IDENTIFIED WITH mysql_native_password BY &#039;1008611&#039;;<\/p>\n<p>\u8bbe\u7f6e\u5141\u8bb8\u8fdc\u7a0b\u767b\u5f55<\/p>\n<p>use mysql<br \/>\nupdate user set user.Host&#061;&#039;%&#039;where user.User&#061;&#039;root&#039;;<br \/>\nflush privileges;<\/p>\n<p>\u6267\u884csql\u6587\u4ef6<\/p>\n<p>source \/opt\/qkl\/2025.4.13zn-blockchain.sql;<\/p>\n<h2>3\u3001\u5b89\u88c5nginx<\/h2>\n<p>\u89e3\u538b\u7f29nginx-1.26.3.tar.gz\u5b89\u88c5\u5305<\/p>\n<p>tar -zxvf nginx-1.26.3.tar.gz<\/p>\n<p>\u7f16\u8bd1nginx&#xff0c;\u8fdb\u5165\u5230\u89e3\u538b\u540e\u7684nginx\u76ee\u5f55&#xff0c;\u4f9d\u6b21\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4&#xff08;\u6bcf\u4e00\u884c\u4ee3\u8868\u4e00\u4e2a\u547d\u4ee4&#xff09;<\/p>\n<p>.\/configure<br \/>\nmake<br \/>\nmake install<\/p>\n<p>\u6267\u884c.\/configure\u62a5\u9519.\/configure: error: C compiler cc is not found<\/p>\n<p># \u5148\u5c06\u4e0b\u8f7d\u597d\u7684nginx-build-debs\u5305&#xff0c;\u590d\u5236\u5230\u79bb\u7ebf\u673a\u5668\u4e0a&#xff0c;\u7136\u540e\u6267\u884c\u547d\u4ee4\u5b89\u88c5gcc\u76f8\u5173\u4f9d\u8d56<br \/>\ncd \/opt\/nginx-build-debs<br \/>\nsudo dpkg -i *.deb<\/p>\n<p>\u5b89\u88c5\u5b8c\u540e\u91cd\u65b0\u6267\u884c\u4e0a\u9762Nginx \u7684\u7f16\u8bd1\u6d41\u7a0b<\/p>\n<p>cd ..\/nginx-1.26.3<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<\/p>\n<p>\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b<\/p>\n<p>\u914d\u7f6enginx<\/p>\n<p>worker_processes  1;<\/p>\n<p>events {<br \/>\n    worker_connections  1024;<br \/>\n}<\/p>\n<p>http {<br \/>\n    include       mime.types;<br \/>\n    default_type  application\/octet-stream;<br \/>\n    sendfile        on;<br \/>\n    keepalive_timeout  65;<\/p>\n<p>    server {<br \/>\n        listen       90;<br \/>\n        server_name  localhost<br \/>\ncharset utf-8;<\/p>\n<p># windows dist\u5b58\u653e\u5728nginx\u7684\u4f4d\u7f6e<br \/>\nlocation \/ {<br \/>\n            root   html\/dist;<br \/>\ntry_files $uri $uri\/ \/index.html;<br \/>\n            index  index.html index.htm;<br \/>\n        }<br \/>\n        # \u8bbf\u95ee\u5730\u56fe\u8d44\u6e90<br \/>\n        location \/biying\/ {<br \/>\n            alias  html\/TMS\/;<br \/>\n            try_files $uri $uri\/ \/index.html;<br \/>\n            index  index.html index.htm;<\/p>\n<p>            # \u542f\u7528CORS&#xff0c;\u9632\u6b62\u8de8\u57df<br \/>\n            add_header &#039;Access-Control-Allow-Origin&#039; &#039;*&#039;;<br \/>\n            add_header &#039;Access-Control-Allow-Methods&#039; &#039;GET, POST, OPTIONS&#039;;<br \/>\n            add_header &#039;Access-Control-Allow-Headers&#039; &#039;DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range&#039;;<br \/>\n            add_header &#039;Access-Control-Expose-Headers&#039; &#039;Content-Length,Content-Range&#039;;<br \/>\n        }<br \/>\n# \u914d\u7f6e\u53cd\u5411\u4ee3\u7406 proxy_pass \u9700\u8981\u6539\u6210\u81ea\u5df1\u540e\u7aef\u7684ip\u7aef\u53e3<br \/>\nlocation \/dev-api\/ {<br \/>\nproxy_set_header Host $http_host;<br \/>\nproxy_set_header X-Real-IP $remote_addr;<br \/>\nproxy_set_header REMOTE-HOST $remote_addr;<br \/>\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\nproxy_pass http:\/\/127.0.0.1:8889\/;<br \/>\nproxy_read_timeout 3600;  # \u5355\u4f4d\u4e3a\u79d2<br \/>\n}<\/p>\n<p>        error_page   500 502 503 504  \/50x.html;<br \/>\n        location &#061; \/50x.html {<br \/>\n            root   html;<br \/>\n        }<br \/>\n    }<\/p>\n<p>}<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p># \u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\nvi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport NGINX_HOME&#061;\/usr\/local\/nginx<br \/>\nexport PATH&#061;$PATH:$NGINX_HOME\/sbin<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\nnginx -v<\/p>\n<p>\u8bbe\u7f6enginx\u670d\u52a1\u5f00\u673a\u81ea\u542f\u52a8<\/p>\n<p># \u521b\u5efa systemd \u670d\u52a1\u6587\u4ef6<br \/>\nsudo vi \/etc\/systemd\/system\/nginx.service<br \/>\n# \u5728nginx.service\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\n[Unit]<br \/>\nDescription&#061;The NGINX HTTP and reverse proxy server<br \/>\nAfter&#061;syslog.target network.target remote-fs.target nss-lookup.target<\/p>\n<p>[Service]<br \/>\nType&#061;forking<br \/>\nPIDFile&#061;\/usr\/local\/nginx\/logs\/nginx.pid<br \/>\nExecStartPre&#061;\/usr\/local\/nginx\/sbin\/nginx -t<br \/>\nExecStart&#061;\/usr\/local\/nginx\/sbin\/nginx<br \/>\nExecReload&#061;\/usr\/local\/nginx\/sbin\/nginx -s reload<br \/>\nExecStop&#061;\/bin\/kill -s QUIT $MAINPID<br \/>\nPrivateTmp&#061;true<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u542f\u7528\u5e76\u542f\u52a8\u670d\u52a1<\/p>\n<p>sudo systemctl enable nginx<br \/>\nsudo systemctl start nginx<\/p>\n<p>\u9632\u706b\u5899\u95ee\u9898<\/p>\n<p># \u67e5\u770b\u9632\u706b\u5899\u662f\u5426\u5df2\u7ecf\u653e\u884c\u4e86 Nginx \u4f7f\u7528\u7684\u7aef\u53e3&#xff08;\u9ed8\u8ba4\u4e3a 80 \u548c 443&#xff09;<br \/>\nfirewall-cmd &#8211;zone&#061;public &#8211;list-ports<br \/>\n# \u5982\u679c\u672a\u653e\u884c\u7aef\u53e3&#xff0c;\u8f93\u5165\u4e00\u4e0b\u547d\u4ee4\u653e\u884c\u7aef\u53e3<br \/>\nfirewall-cmd &#8211;zone&#061;public &#8211;add-port&#061;80\/tcp &#8211;permanent  # \u653e\u884c HTTP \u7aef\u53e3<br \/>\nfirewall-cmd &#8211;zone&#061;public &#8211;add-port&#061;443\/tcp &#8211;permanent  # \u653e\u884c HTTPS \u7aef\u53e3<br \/>\n# \u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899\u914d\u7f6e\u4ee5\u4f7f\u66f4\u6539\u751f\u6548<br \/>\nfirewall-cmd &#8211;reload<br \/>\n# \u5982\u679c\u4ecd\u7136\u65e0\u6cd5\u8bbf\u95ee&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u542f\u9632\u706b\u5899\u670d\u52a1<br \/>\nsystemctl restart firewalld<\/p>\n<h2>4\u3001\u5b89\u88c5python<\/h2>\n<p>\u89e3\u538bpython<\/p>\n<p>tar -xf Python-3.8.9.tar.xz<\/p>\n<p>\u5b89\u88c5python\u5f00\u53d1\u4f9d\u8d56\u5305<\/p>\n<p># \u5148\u5c06\u4e0b\u8f7d\u597d\u7684python_deps\u5305&#xff0c;\u590d\u5236\u5230\u79bb\u7ebf\u673a\u5668\u4e0a&#xff0c;\u7136\u540e\u6267\u884c\u547d\u4ee4\u5b89\u88c5python\u76f8\u5173\u4f9d\u8d56<br \/>\ncd \/opt\/python_deps<br \/>\nsudo dpkg -i *.deb<\/p>\n<p>\u914d\u7f6e\u7f16\u8bd1\u53c2\u6570-\u52a0\u4e0a\u4f18\u5316\u4e0e\u81ea\u5b9a\u4e49\u5b89\u88c5\u8def\u5f84&#xff08;\u4e0d\u8986\u76d6\u7cfb\u7edf Python&#xff09;<\/p>\n<p>cd Python-3.8.9<br \/>\nmake clean# \u6e05\u7406\u65e7\u6784\u5efa&#xff0c;\u91cd\u65b0\u914d\u7f6e<br \/>\n.\/configure &#8211;enable-optimizations &#8211;prefix&#061;\/usr\/local\/python3.8<br \/>\nmake<br \/>\nmake install<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p># \u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\nvi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport PATH&#061;&#034;\/usr\/local\/python3.8\/bin:$PATH&#034;<\/p>\n<p>\u5982\u679c\u60f3\u5f7b\u5e95 \u66ff\u4ee3\u7cfb\u7edf\u9ed8\u8ba4\u7684 python \u547d\u4ee4&#xff0c;\u8fd8\u53ef\u4ee5\u52a0\u4e00\u4e2a\u8f6f\u94fe\u63a5<\/p>\n<p>mv \/usr\/bin\/python \/usr\/bin\/python.bak   # \u5907\u4efd\u4e00\u4e0b\u7cfb\u7edf\u81ea\u5e26\u7684 python<br \/>\nln -s \/usr\/local\/python3.8\/bin\/python3 \/usr\/bin\/python<br \/>\nln -s \/usr\/local\/python3.8\/bin\/pip3 \/usr\/bin\/pip<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\npython -V<br \/>\npip3 -V (\u4e5f\u53ef\u4ee5\u521b\u5efa\u8f6f\u8fde\u63a5\u7528pip\u547d\u4ee4&#xff1a; ln -s \/usr\/local\/bin\/pip3 \/usr\/local\/bin\/pip)<\/p>\n<h2>5\u3001\u5b89\u88c5matlab<\/h2>\n<p>\u89e3\u538bzip<\/p>\n<p>mkdir MATLAB_Runtime_R2020b<br \/>\nunzip MATLAB_Runtime_R2020b_Update_8_glnxa64.zip -d MATLAB_Runtime_R2020b<\/p>\n<p>\u7f16\u8bd1matlab<\/p>\n<p>cd MATLAB_Runtime_R2020b<br \/>\nsudo .\/install -mode silent -agreeToLicense yes -destinationFolder \/opt\/matlab_runtime\/r2020b<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p>vi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport LD_LIBRARY_PATH&#061;\/opt\/matlab_runtime\/v99\/runtime\/glnxa64:\/opt\/matlab_runtime\/v99\/bin\/glnxa64:$LD_LIBRARY_PATH<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\necho $LD_LIBRARY_PATH<\/p>\n<h2>6\u3001\u786e\u4fdd\u767b\u5f55 shell \u4f1a\u81ea\u52a8\u52a0\u8f7d \/etc\/profile<\/h2>\n<p>vi ~\/.bashrc<br \/>\n# \u6dfb\u52a0\u5185\u5bb9\u5e76\u4fdd\u5b58<br \/>\nsource \/etc\/profile<\/p>\n<h2>\u9e92\u9e9f\u7cfb\u7edfarm\u67b6\u6784\u9879\u76ee\u90e8\u7f72<\/h2>\n<p>\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p>sudo systemctl stop firewalld<\/p>\n<p>\u6c38\u4e45\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p>sudo systemctl disable firewalld<\/p>\n<h2>1\u3001\u901a\u8fc7qemu\u5b89\u88c5\u9e92\u9e9f\u7cfb\u7edfARM\u7248\u672c<\/h2>\n<p>\u521b\u5efa\u865a\u62df\u78c1\u76d8<\/p>\n<p>qemu-img create -f qcow2 E:\\\\kylinarm64\\\\kylindisk.qcow2 50G<\/p>\n<p>\u6ce8\u518c\u865a\u62df\u673a new<\/p>\n<p>qemu-system-aarch64.exe ^<br \/>\n -m 8192 ^<br \/>\n -cpu cortex-a72 ^<br \/>\n -smp 8,sockets&#061;4,cores&#061;2 ^<br \/>\n -M virt ^<br \/>\n -bios e:\\\\kylinarm64\\\\QEMU_EFI.fd ^<br \/>\n -device VGA ^<br \/>\n -device nec-usb-xhci ^<br \/>\n -device usb-table ^<br \/>\n -device usb-kbd ^<br \/>\n -drive if&#061;none,file&#061;e:\\\\kylinarm64\\\\kylindisk.qcow2,id&#061;hd0 ^<br \/>\n -device virtio-blk-device,drive&#061;hd0 ^<br \/>\n -drive if&#061;none,file&#061;e:\\\\kylinarm64\\\\Kylin-Server-V10-SP3-2403-Release-20240426-arm64.iso,id&#061;cdrom,media&#061;cdrom ^<br \/>\n -device virtio-scsi-device ^<br \/>\n -device scsi-cd,drive&#061;cdrom ^<\/p>\n<p>\u542f\u52a8\u865a\u62df\u673a- TAP\u7f51\u7edc\u6865\u63a5\u65b9\u5f0f<\/p>\n<p>qemu-system-aarch64.exe ^<br \/>\n -m 8192 ^<br \/>\n -cpu cortex-a72 ^<br \/>\n -smp 8,sockets&#061;4,cores&#061;2 ^<br \/>\n -M virt ^<br \/>\n -bios e:\\\\kylinarm64\\\\QEMU_EFI.fd ^<br \/>\n -device VGA ^<br \/>\n -device nec-usb-xhci ^<br \/>\n -device usb-tablet ^<br \/>\n -device usb-kbd ^<br \/>\n -drive if&#061;none,file&#061;e:\\\\kylinarm64\\\\kylindisk.qcow2,id&#061;hd0 ^<br \/>\n -device virtio-blk-device,drive&#061;hd0 ^<br \/>\n -net nic ^<br \/>\n -net tap,ifname&#061;tap0,script&#061;no,downscript&#061;no<\/p>\n<p>\u542f\u52a8\u865a\u62df\u673a-NAT\u7f51\u7edc\u76f4\u8fde\u65b9\u5f0f<\/p>\n<p>qemu-system-aarch64.exe ^<br \/>\n -m 8192 ^<br \/>\n -cpu cortex-a72 ^<br \/>\n -smp 8,sockets&#061;4,cores&#061;2 ^<br \/>\n -M virt ^<br \/>\n -bios e:\\\\kylinarm64\\\\QEMU_EFI.fd ^<br \/>\n -device VGA ^<br \/>\n -device nec-usb-xhci ^<br \/>\n -device usb-tablet ^<br \/>\n -device usb-kbd ^<br \/>\n -drive if&#061;none,file&#061;e:\\\\kylinarm64\\\\kylindisk.qcow2,id&#061;hd0 ^<br \/>\n -device virtio-blk-device,drive&#061;hd0 ^<br \/>\n -netdev user,id&#061;net0,hostfwd&#061;tcp::2222-:22 ^<br \/>\n -device virtio-net-device,netdev&#061;net0<\/p>\n<p>\u8f6c\u53d1\u591a\u4e2a\u7aef\u53e3\u542f\u52a8\u865a\u62df\u673a<\/p>\n<p>-netdev user,id&#061;net0,hostfwd&#061;tcp::2222-:22,hostfwd&#061;tcp::90-:90,hostfwd&#061;tcp::8889-:8889,hostfwd&#061;tcp::9000-:9000 ^<\/p>\n<h2>2\u3001\u5b89\u88c5\u865a\u62df\u7f51\u5361<\/h2>\n<p>\u4e0b\u8f7d\u5730\u5740&#xff1a;https:\/\/openvpn.net\/community-downloads\/<\/p>\n<p>\u5b89\u88c5openvpn-connect&#xff0c;\u4fee\u6539\u7f51\u5361\u540d\u79f0\u4e3atap0&#xff0c;\u5c06\u7269\u7406\u673a\u7684\u7f51\u7edc\u5171\u4eab\u7ed9\u865a\u62df\u7f51\u5361tap0<\/p>\n<h2>3\u3001\u8fdb\u884c\u7f51\u7edc\u914d\u7f6e\u8bbe\u7f6e\u56fa\u5b9aip<\/h2>\n<p>\u53c2\u8003&#xff1a;https:\/\/blog.csdn.net\/qq_42055933\/article\/details\/135497642?utm_medium&#061;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5-135497642-blog-131632280.235^v43^pc_blog_bottom_relevance_base5&amp;spm&#061;1001.2101.3001.4242.4&amp;utm_relevant_index&#061;8<\/p>\n<h2>4\u3001\u5b89\u88c5jdk<\/h2>\n<p>\u89e3\u538bjdk<\/p>\n<p># \u89e3\u538bjdk<br \/>\ntar -zxvf jdk-8u441-linux-aarch64.tar.gz<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p># \u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\nvi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport JAVA_HOME&#061;\/opt\/jdk1.8.0_441<br \/>\nexport CLASSPATH&#061;.:$JAVA_HOME\/bin\/<br \/>\nexport PATH&#061;.:$JAVA_HOME\/bin:$PATH<\/p>\n<p>\u591ajdk\u7248\u672c\u793a\u4f8b<\/p>\n<p>export JAVA_HOME&#061;\/opt\/jdk\/jdk1.8.0_172<br \/>\nexport CLASSPATH&#061;.:${JAVA_HOME}\/jre\/lib\/rt.jar:${JAVA_HOME}\/lib\/dt.jar:${JAVA_HOME}\/lib\/tools.jar<br \/>\nexport PATH&#061;$PATH:${JAVA_HOME}\/bin<\/p>\n<p># java17 environment<br \/>\nexport JAVA17_HOME&#061;\/opt\/jdk\/jdk-17.0.13<br \/>\nexport CLASSPATH&#061;.:$JAVA17_HOME\/bin\/<br \/>\nexport PATH&#061;.:$JAVA17_HOME\/bin:$PATH<\/p>\n<p># \u591a JDK \u7248\u672c\u793a\u4f8b\u5173\u952e&#xff08;\u8d77\u522b\u540d\u4ee5\u8fbe\u5230\u5171\u5b58\u76ee\u7684&#xff09;<br \/>\nalias java&#061;${JAVA_HOME}\/bin\/java<br \/>\nalias java17&#061;$JAVA17_HOME\/bin\/java<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\njava -version<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;\u786e\u8ba4\u914d\u7f6e\u5df2\u751f\u6548&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho $JAVA_HOME<br \/>\necho $PATH<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;\u786e\u8ba4\u914d\u7f6e\u5df2\u751f\u6548&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\njava17 -version (\u591aJDK \u7248\u672c\u793a\u4f8b&#xff0c;java17\u4e3aalias\u5904\u914d\u7f6e\u7684\u522b\u540d)<\/p>\n<h2>5\u3001\u5b89\u88c5mysql<\/h2>\n<p>\u5378\u8f7dmariadb<\/p>\n<p>yum remove mariadb-server mariadb<\/p>\n<p>\u68c0\u67e5\u662f\u5426\u8fd8\u6709\u672a\u5220\u9664\u7684\u5305<\/p>\n<p>rpm -qa | grep mariadb<br \/>\nyum remove mariadb-connector-c-3.0.6-9.ky10.aarch64<br \/>\nyum clean all<\/p>\n<p>\u5220\u9664MariaDB\u7684\u6570\u636e\u76ee\u5f55\u548c\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>rm -rf \/var\/lib\/mysql\/<br \/>\nrm -rf \/etc\/my.cnf<\/p>\n<p>\u89e3\u538bmysql<\/p>\n<p>tar -zxvf mysql-8.0.31-linux-glibc2.17-aarch64.tar.gz<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u76ee\u5f55\u540d\u79f0<\/p>\n<p>mv mysql-8.0.31-linux-glibc2.17-aarch64 mysql<\/p>\n<p>\u8fdb\u5165\u89e3\u538b\u540e\u7684\u76ee\u5f55<\/p>\n<p>cd mysql<\/p>\n<p>\u521b\u5efa\u6570\u636e\u5e93\u6587\u4ef6\u5b58\u653e\u7684\u6587\u4ef6\u5939\u3002\u8fd9\u4e2a\u6587\u4ef6\u5939\u5c06\u6765\u5b58\u653e\u6bcf\u4e2a\u6570\u636e\u5e93\u7684\u5e93\u6587\u4ef6<\/p>\n<p>mkdir mysqldb<\/p>\n<p>mysql\u5b89\u88c5\u76ee\u5f55\u8d4b\u4e88\u6743\u9650<\/p>\n<p>chmod -R 777 \/opt\/mysql<\/p>\n<p>\u521b\u5efamysql\u7ec4\u548c\u7528\u6237<\/p>\n<p>groupadd mysql<\/p>\n<p>\u521b\u5efa\u7528\u6237(-s \/bin\/false\u53c2\u6570\u6307\u5b9amysql\u7528\u6237\u4ec5\u62e5\u6709\u6240\u6709\u6743&#xff0c;\u800c\u6ca1\u6709\u767b\u5f55\u6743\u9650)<\/p>\n<p>useradd -r -g mysql -s \/bin\/false mysql<\/p>\n<p>** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**<\/p>\n<p>chown -R mysql:mysql .\/<\/p>\n<p>\u4fee\u6539mysql\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>vim \/etc\/my.cnf<\/p>\n<p>[mysqld]<br \/>\n# \u8bbe\u7f6e3306\u7aef\u53e3<br \/>\nport&#061;3306<br \/>\n# \u8bbe\u7f6emysql\u7684\u5b89\u88c5\u76ee\u5f55<br \/>\nbasedir&#061;\/opt\/mysql<br \/>\n# \u8bbe\u7f6emysql\u6570\u636e\u5e93\u7684\u6570\u636e\u7684\u5b58\u653e\u76ee\u5f55<br \/>\ndatadir&#061;\/opt\/mysql\/mysqldb<br \/>\n# \u5141\u8bb8\u6700\u5927\u8fde\u63a5\u6570<br \/>\nmax_connections&#061;10000<br \/>\n# \u5141\u8bb8\u8fde\u63a5\u5931\u8d25\u7684\u6b21\u6570\u3002\u8fd9\u662f\u4e3a\u4e86\u9632\u6b62\u6709\u4eba\u4ece\u8be5\u4e3b\u673a\u8bd5\u56fe\u653b\u51fb\u6570\u636e\u5e93\u7cfb\u7edf<br \/>\nmax_connect_errors&#061;10<br \/>\n# \u670d\u52a1\u7aef\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\u9ed8\u8ba4\u4e3aUTF8<br \/>\ncharacter-set-server&#061;utf8<br \/>\n# \u521b\u5efa\u65b0\u8868\u65f6\u5c06\u4f7f\u7528\u7684\u9ed8\u8ba4\u5b58\u50a8\u5f15\u64ce<br \/>\ndefault-storage-engine&#061;INNODB<br \/>\n# \u9ed8\u8ba4\u4f7f\u7528\u201cmysql_native_password\u201d\u63d2\u4ef6\u8ba4\u8bc1<br \/>\ndefault_authentication_plugin&#061;mysql_native_password<br \/>\n# \u5ffd\u7565\u5927\u5c0f\u5199<br \/>\nlower_case_table_names&#061;1<br \/>\n[mysql]<br \/>\n# \u8bbe\u7f6emysql\u5ba2\u6237\u7aef\u9ed8\u8ba4\u5b57\u7b26\u96c6<br \/>\ndefault-character-set&#061;utf8<br \/>\n[client]<br \/>\n# \u8bbe\u7f6emysql\u5ba2\u6237\u7aef\u8fde\u63a5\u670d\u52a1\u7aef\u65f6\u9ed8\u8ba4\u4f7f\u7528\u7684\u7aef\u53e3<br \/>\nport&#061;3306<br \/>\ndefault-character-set&#061;utf8<\/p>\n<p>\u8fdb\u5165mysql \u5b89\u88c5\u76ee\u5f55\u4e0b<\/p>\n<p>cd \/opt\/mysql\/bin\/<\/p>\n<p>\u5b89\u88c5mysql&#xff0c;\u5e76\u8bb0\u4f4f\u521d\u59cb\u5316\u968f\u673a\u5bc6\u7801 k;EQgy((o9nY<\/p>\n<p>.\/mysqld &#8211;initialize &#8211;console  <\/p>\n<p>\u8fdb\u5165\/opt\/mysql\/support-files\/\u76ee\u5f55<\/p>\n<p>cd \/opt\/mysql\/support-files\/<\/p>\n<p>**\u542f\u52a8mysql\u670d\u52a1 **<\/p>\n<p> .\/mysql.server start<\/p>\n<p>\u5982\u679c\u7b2c\u4e00\u6b21\u542f\u52a8&#xff0c;\u5f53\u521d\u59cb\u5316\u6267\u884c\u4f1a\u6709\u62a5\u9519&#xff0c;\u6b64\u65f6\u4e0d\u8981\u62c5\u5fc3&#xff0c;\u91cd\u65b0\u7ed9mysql\u5b89\u88c5\u76ee\u5f55\u8d4b\u4e88\u4e00\u4e0b\u6743\u9650\u540e&#xff0c;\u518d\u6b21\u6267\u884c<\/p>\n<p>chmod -R 777 \/opt\/mysql<br \/>\n.\/mysql.server start<\/p>\n<p>\u5c06mysql\u6dfb\u52a0\u5230\u7cfb\u7edf\u8fdb\u7a0b\u4e2d<\/p>\n<p>cp \/opt\/mysql\/support-files\/mysql.server \/etc\/init.d\/mysqld<\/p>\n<p>\u8bbe\u7f6emysql\u81ea\u542f\u52a8<\/p>\n<p>chmod &#043;x \/etc\/init.d\/mysqld<br \/>\nsystemctl enable mysqld<\/p>\n<p>\u5c06 mysql \u52a0\u5165\u73af\u5883\u53d8\u91cf<\/p>\n<p>vim \/etc\/profile<br \/>\nexport PATH&#061;$PATH:\/opt\/mysql\/bin<br \/>\nsource \/etc\/profile<\/p>\n<p>\u767b\u5f55mysql (mysql -uroot -p\u2019k;EQgy((o9nY\u2019)<\/p>\n<p>mysql -uroot -p&#xff08;\u5907\u6ce8&#xff1a;\u8f93\u5165\u521a\u521a\u9ed8\u8ba4\u7684\u5bc6\u7801\u8981\u52a0\u4e0a\u5f15\u53f7&#xff09;<\/p>\n<p>\u4fee\u6539root\u7528\u6237\u767b\u5f55\u5bc6\u7801<\/p>\n<p>alter user &#039;root&#039;&#064;&#039;localhost&#039; IDENTIFIED WITH mysql_native_password BY &#039;1008611&#039;;<\/p>\n<p>\u8bbe\u7f6e\u5141\u8bb8\u8fdc\u7a0b\u767b\u5f55<\/p>\n<p>use mysql<br \/>\nupdate user set user.Host&#061;&#039;%&#039;where user.User&#061;&#039;root&#039;;<br \/>\nflush privileges;<\/p>\n<p>\u6267\u884csql\u6587\u4ef6<\/p>\n<p>source \/opt\/qkl\/2025.4.13zn-blockchain.sql;<\/p>\n<h2>6\u3001\u5b89\u88c5nginx<\/h2>\n<p>\u89e3\u538b\u7f29nginx-1.26.3.tar.gz\u5b89\u88c5\u5305<\/p>\n<p>tar -zxvf nginx-1.26.3.tar.gz<\/p>\n<p>\u7f16\u8bd1nginx&#xff0c;\u8fdb\u5165\u5230\u89e3\u538b\u540e\u7684nginx\u76ee\u5f55&#xff0c;\u4f9d\u6b21\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4&#xff08;\u6bcf\u4e00\u884c\u4ee3\u8868\u4e00\u4e2a\u547d\u4ee4&#xff09;<\/p>\n<p>cd ..\/nginx-1.26.3<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<\/p>\n<p>\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b<\/p>\n<p>\u914d\u7f6enginx<\/p>\n<p>worker_processes  1;<\/p>\n<p>events {<br \/>\n    worker_connections  1024;<br \/>\n}<\/p>\n<p>http {<br \/>\n    include       mime.types;<br \/>\n    default_type  application\/octet-stream;<br \/>\n    sendfile        on;<br \/>\n    keepalive_timeout  65;<\/p>\n<p>    server {<br \/>\n        listen       90;<br \/>\n        server_name  localhost<br \/>\ncharset utf-8;<\/p>\n<p># windows dist\u5b58\u653e\u5728nginx\u7684\u4f4d\u7f6e<br \/>\nlocation \/ {<br \/>\n            root   html\/dist;<br \/>\ntry_files $uri $uri\/ \/index.html;<br \/>\n            index  index.html index.htm;<br \/>\n        }<br \/>\n        # \u8bbf\u95ee\u5730\u56fe\u8d44\u6e90<br \/>\n        location \/biying\/ {<br \/>\n            alias  html\/TMS\/;<br \/>\n            try_files $uri $uri\/ \/index.html;<br \/>\n            index  index.html index.htm;<\/p>\n<p>            # \u542f\u7528CORS&#xff0c;\u9632\u6b62\u8de8\u57df<br \/>\n            add_header &#039;Access-Control-Allow-Origin&#039; &#039;*&#039;;<br \/>\n            add_header &#039;Access-Control-Allow-Methods&#039; &#039;GET, POST, OPTIONS&#039;;<br \/>\n            add_header &#039;Access-Control-Allow-Headers&#039; &#039;DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range&#039;;<br \/>\n            add_header &#039;Access-Control-Expose-Headers&#039; &#039;Content-Length,Content-Range&#039;;<br \/>\n        }<br \/>\n# \u914d\u7f6e\u53cd\u5411\u4ee3\u7406 proxy_pass \u9700\u8981\u6539\u6210\u81ea\u5df1\u540e\u7aef\u7684ip\u7aef\u53e3<br \/>\nlocation \/dev-api\/ {<br \/>\nproxy_set_header Host $http_host;<br \/>\nproxy_set_header X-Real-IP $remote_addr;<br \/>\nproxy_set_header REMOTE-HOST $remote_addr;<br \/>\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\nproxy_pass http:\/\/127.0.0.1:8889\/;<br \/>\nproxy_read_timeout 3600;  # \u5355\u4f4d\u4e3a\u79d2<br \/>\n}<\/p>\n<p>        error_page   500 502 503 504  \/50x.html;<br \/>\n        location &#061; \/50x.html {<br \/>\n            root   html;<br \/>\n        }<br \/>\n    }<\/p>\n<p>}<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p># \u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\nvi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport NGINX_HOME&#061;\/usr\/local\/nginx<br \/>\nexport PATH&#061;$PATH:$NGINX_HOME\/sbin<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\nnginx -v<\/p>\n<p>\u8bbe\u7f6enginx\u670d\u52a1\u5f00\u673a\u81ea\u542f\u52a8<\/p>\n<p># \u521b\u5efa systemd \u670d\u52a1\u6587\u4ef6<br \/>\nsudo vi \/etc\/systemd\/system\/nginx.service<br \/>\n# \u5728nginx.service\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\n[Unit]<br \/>\nDescription&#061;The NGINX HTTP and reverse proxy server<br \/>\nAfter&#061;syslog.target network.target remote-fs.target nss-lookup.target<\/p>\n<p>[Service]<br \/>\nType&#061;forking<br \/>\nPIDFile&#061;\/usr\/local\/nginx\/logs\/nginx.pid<br \/>\nExecStartPre&#061;\/usr\/local\/nginx\/sbin\/nginx -t<br \/>\nExecStart&#061;\/usr\/local\/nginx\/sbin\/nginx<br \/>\nExecReload&#061;\/usr\/local\/nginx\/sbin\/nginx -s reload<br \/>\nExecStop&#061;\/bin\/kill -s QUIT $MAINPID<br \/>\nPrivateTmp&#061;true<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u542f\u7528\u5e76\u542f\u52a8\u670d\u52a1<\/p>\n<p>sudo systemctl enable nginx<br \/>\nsudo systemctl start nginx<\/p>\n<p>\u9632\u706b\u5899\u95ee\u9898<\/p>\n<p># \u67e5\u770b\u9632\u706b\u5899\u662f\u5426\u5df2\u7ecf\u653e\u884c\u4e86 Nginx \u4f7f\u7528\u7684\u7aef\u53e3&#xff08;\u9ed8\u8ba4\u4e3a 80 \u548c 443&#xff09;<br \/>\nfirewall-cmd &#8211;zone&#061;public &#8211;list-ports<br \/>\n# \u5982\u679c\u672a\u653e\u884c\u7aef\u53e3&#xff0c;\u8f93\u5165\u4e00\u4e0b\u547d\u4ee4\u653e\u884c\u7aef\u53e3<br \/>\nfirewall-cmd &#8211;zone&#061;public &#8211;add-port&#061;80\/tcp &#8211;permanent  # \u653e\u884c HTTP \u7aef\u53e3<br \/>\nfirewall-cmd &#8211;zone&#061;public &#8211;add-port&#061;443\/tcp &#8211;permanent  # \u653e\u884c HTTPS \u7aef\u53e3<br \/>\n# \u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899\u914d\u7f6e\u4ee5\u4f7f\u66f4\u6539\u751f\u6548<br \/>\nfirewall-cmd &#8211;reload<br \/>\n# \u5982\u679c\u4ecd\u7136\u65e0\u6cd5\u8bbf\u95ee&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u542f\u9632\u706b\u5899\u670d\u52a1<br \/>\nsystemctl restart firewalld<\/p>\n<h2>7\u3001\u5b89\u88c5python<\/h2>\n<p>\u89e3\u538bpython<\/p>\n<p>tar -xf Python-3.8.9.tar.xz<\/p>\n<p>\u914d\u7f6e\u7f16\u8bd1\u53c2\u6570-\u52a0\u4e0a\u81ea\u5b9a\u4e49\u5b89\u88c5\u8def\u5f84&#xff08;\u4e0d\u8986\u76d6\u7cfb\u7edf Python&#xff09;<\/p>\n<p>cd Python-3.8.9<br \/>\nmake clean# \u6e05\u7406\u65e7\u6784\u5efa&#xff0c;\u91cd\u65b0\u914d\u7f6e<br \/>\n.\/configure &#8211;prefix&#061;\/usr\/local\/python3.8<br \/>\nmake -j$(nproc)<br \/>\nmake install<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p># \u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\nvi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport PATH&#061;&#034;\/usr\/local\/python3.8\/bin:$PATH&#034;<\/p>\n<p>\u5982\u679c\u60f3\u5f7b\u5e95 \u66ff\u4ee3\u7cfb\u7edf\u9ed8\u8ba4\u7684 python \u547d\u4ee4&#xff0c;\u8fd8\u53ef\u4ee5\u52a0\u4e00\u4e2a\u8f6f\u94fe\u63a5<\/p>\n<p>mv \/usr\/bin\/python \/usr\/bin\/python.bak   # \u5907\u4efd\u4e00\u4e0b\u7cfb\u7edf\u81ea\u5e26\u7684 python<br \/>\nln -s \/usr\/local\/python3.8\/bin\/python3 \/usr\/bin\/python<br \/>\nln -s \/usr\/local\/python3.8\/bin\/pip3 \/usr\/bin\/pip<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\npython -V<br \/>\npip3 -V (\u4e5f\u53ef\u4ee5\u521b\u5efa\u8f6f\u8fde\u63a5\u7528pip\u547d\u4ee4&#xff1a; ln -s \/usr\/local\/bin\/pip3 \/usr\/local\/bin\/pip)<\/p>\n<h2>8\u3001\u5b89\u88c5matlab&#xff08;Linux\u6ca1\u6709\u5bf9\u5e94arm\u7248\u672c&#xff09;<\/h2>\n<p>\u89e3\u538bzip<\/p>\n<p>mkdir MATLAB_Runtime_R2020b<br \/>\nunzip MATLAB_Runtime_R2020b_Update_8_glnxa64.zip -d MATLAB_Runtime_R2020b<\/p>\n<p>\u7f16\u8bd1matlab<\/p>\n<p>cd MATLAB_Runtime_R2020b<br \/>\nsudo .\/install -mode silent -agreeToLicense yes -destinationFolder \/opt\/matlab_runtime\/r2020b<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p>vi \/etc\/profile<br \/>\n# \u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\nexport LD_LIBRARY_PATH&#061;\/opt\/matlab_runtime\/v99\/runtime\/glnxa64:\/opt\/matlab_runtime\/v99\/bin\/glnxa64:$LD_LIBRARY_PATH<\/p>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u5e76\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>source \/etc\/profile<br \/>\necho $LD_LIBRARY_PATH<\/p>\n<h2>9\u3001\u786e\u4fdd\u767b\u5f55 shell \u4f1a\u81ea\u52a8\u52a0\u8f7d \/etc\/profile<\/h2>\n<p>vi ~\/.bashrc<br \/>\n# \u6dfb\u52a0\u5185\u5bb9\u5e76\u4fdd\u5b58<br \/>\nsource \/etc\/profile<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b\u3002\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b\u3002**\u542f\u52a8mysql\u670d\u52a1 ****\u542f\u52a8mysql\u670d\u52a1 **** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**_\u9e92\u9e9f\u7cfb\u7edfdpkg\u672a\u627e\u5230\u547d\u4ee4<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[751,43,2802,188],"topic":[],"class_list":["post-33740","post","type-post","status-publish","format-standard","hentry","category-server","tag-arm","tag-43","tag-2802","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/33740.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b\u3002\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b\u3002**\u542f\u52a8mysql\u670d\u52a1 ****\u542f\u52a8mysql\u670d\u52a1 **** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**_\u9e92\u9e9f\u7cfb\u7edfdpkg\u672a\u627e\u5230\u547d\u4ee4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/33740.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-28T06:10:36+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33740.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/33740.html\",\"name\":\"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-28T06:10:36+00:00\",\"dateModified\":\"2025-04-28T06:10:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/33740.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/33740.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33740.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/33740.html","og_locale":"zh_CN","og_type":"article","og_title":"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b\u3002\u7f16\u8bd1\u5b8c\u6210\u540enginx\u9ed8\u8ba4\u5b89\u88c5\u5728**\/usr\/local\/nginx** \u8def\u5f84\u4e0b\u3002**\u542f\u52a8mysql\u670d\u52a1 ****\u542f\u52a8mysql\u670d\u52a1 **** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**** \u5c06\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u4e2d**_\u9e92\u9e9f\u7cfb\u7edfdpkg\u672a\u627e\u5230\u547d\u4ee4","og_url":"https:\/\/www.wsisp.com\/helps\/33740.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-28T06:10:36+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/33740.html","url":"https:\/\/www.wsisp.com\/helps\/33740.html","name":"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-28T06:10:36+00:00","dateModified":"2025-04-28T06:10:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/33740.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/33740.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/33740.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u9e92\u9e9f\u7cfb\u7edf\u670d\u52a1\u5668\u7248\u672cx86\u67b6\u6784&amp;arm\u67b6\u6784\u90e8\u7f72\u8fc7\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/33740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=33740"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/33740\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=33740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=33740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=33740"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=33740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}