{"id":43498,"date":"2025-06-12T15:51:06","date_gmt":"2025-06-12T07:51:06","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/43498.html"},"modified":"2025-06-12T15:51:06","modified_gmt":"2025-06-12T07:51:06","slug":"%e7%bb%9f%e4%bf%a1%e6%9c%8d%e5%8a%a1%e5%99%a8java%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/43498.html","title":{"rendered":"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e"},"content":{"rendered":"<h2 id=\"hxDmj\">Java\u5b89\u88c5<\/h2>\n<h3 id=\"vtVsz\">\u4e0b\u8f7djdk<\/h3>\n<p> \u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u4e0b\u8f7djdk11\u7684\u5b89\u88c5\u5305 <\/p>\n<p>https:\/\/www.oracle.com\/java\/technologies\/downloads\/?spm&#061;a2c6h.12873639.article-detail.4.f7c57cb7ZEn0FQ#java11<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075049-684a86d9d5930.png\" alt=\"\" \/><\/p>\n<h3 id=\"DQpiy\">\u4e0a\u4f20jdk\u5b89\u88c5\u5305<\/h3>\n<p> \u8fdb\u5165home\u76ee\u5f55&#xff0c;\u521b\u5efa\u4e00\u4e2a\u540d\u4e3ajdk\u7684\u76ee\u5f55\u540d<br \/>\n<span class=\"token comment\"># \u8fdb\u5165home\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/home\/<br \/>\n<span class=\"token comment\"># \u521b\u5efajdk\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> jdk<\/p>\n<p>\u8fdb\u5165jdk\u76ee\u5f55&#xff0c;\u4e0a\u4f20\u4e0b\u8f7d\u7684jdk\u538b\u7f29\u5305<\/p>\n<h3 id=\"lsclm\">\u89e3\u538b\u5b89\u88c5\u5305<\/h3>\n<p> tar -zxvf jdk-11.0.26_linux-x64_bin.tar.gz <\/p>\n<h3 id=\"NGKKA\">\u914d\u7f6e\u73af\u5883<\/h3>\n<p> \u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<br \/>\n<span class=\"token function\">vim<\/span> \/etc\/profile<\/p>\n<p>\u8f93\u5165i\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u5728\u914d\u7f6e\u6587\u4ef6\u672b\u5c3e\u52a0\u5165jdk\u73af\u5883\u914d\u7f6e<\/p>\n<p><span class=\"token comment\">#jdk11 environment<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">JAVA_HOME<\/span><span class=\"token operator\">&#061;<\/span>\/home\/jdk\/jdk-11.0.26<br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">CLASSPATH<\/span><span class=\"token operator\">&#061;<\/span>.:<span class=\"token variable\">${JAVA_HOME}<\/span>\/lib<br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\"><span class=\"token environment constant\">PATH<\/span><\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\">${JAVA_HOME}<\/span>\/bin:<span class=\"token environment constant\">$PATH<\/span><\/p>\n<p>\u6309ESC\u952e&#xff0c;\u8f93\u5165:wq\u8fdb\u884c\u4fdd\u5b58<\/p>\n<p>\u4f7f\u914d\u7f6e\u6587\u4ef6\u751f\u6548<\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e\u751f\u6548<\/span><br \/>\n<span class=\"token builtin class-name\">source<\/span> \/etc\/profile<\/p>\n<h3 id=\"Tr694\">\u6821\u9a8c<\/h3>\n<p>java -version<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075052-684a86dc2487f.png\" alt=\"\" \/><\/p>\n<h2 id=\"doZO6\">mysql\u5b89\u88c5<\/h2>\n<h3 id=\"aiZLL\">\u4e0b\u8f7dmysql\u5b89\u88c5\u5305<\/h3>\n<p> UOS Server 20 \u57fa\u4e8e RHEL 8&#xff0c;\u9700\u8981\u4e0b\u8f7d \u57fa\u4e8eRHEL 8\u5185\u6838\u7248\u672c\u7684rpm\u5b89\u88c5\u5305 <\/p>\n<p>https:\/\/downloads.mysql.com\/archives\/community\/?spm&#061;a2c6h.12873639.article-detail.5.5699ff48klHHRH<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075052-684a86dc41408.png\" alt=\"\" \/><\/p>\n<h3 id=\"P72D4\">\u4e0a\u4f20mysql\u5b89\u88c5\u5305<\/h3>\n<p> \u8fdb\u5165\/usr\/local\/\u76ee\u5f55&#xff0c;\u521b\u5efa\u4e00\u4e2a\u540d\u4e3amysql\u7684\u76ee\u5f55\u540d<br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/usr\/local\/<br \/>\n<span class=\"token comment\"># \u521b\u5efamysql\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> mysql<\/p>\n<p>\u8fdb\u5165mysql\u76ee\u5f55&#xff0c;\u4e0a\u4f20\u4e0b\u8f7d\u597d\u7684\u7684mysql rpm\u5b89\u88c5\u5305<\/p>\n<h3 id=\"p6NbP\">\u89e3\u538brpm\u5b89\u88c5\u5305<\/h3>\n<p>tar -xvf mysql-8.0.32-1.el8.x86_64.rpm-bundle.tar<\/p>\n<h3 id=\"i55hI\">\u5b89\u88c5rpm\u8f6f\u4ef6\u5305&#xff08;\u6309\u987a\u5e8f\u6267\u884c&#xff09;<\/h3>\n<p><span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> mysql-community-common-8.0.32-1.el8.x86_64.rpm<br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> mysql-community-client-plugins-8.0.32-1.el8.x86_64.rpm<br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> mysql-community-libs-8.0.32-1.el8.x86_64.rpm<br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> mysql-community-client-8.0.32-1.el8.x86_64.rpm<br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> mysql-community-icu-data-files-8.0.32-1.el8.x86_64.rpm<\/p>\n<h3 id=\"GTcJV\">\u5b89\u88c5mysql-community-server\u524d\u9700\u8981\u5b89\u88c5net-tools\u7ec4\u4ef6&#xff08;\u670d\u52a1\u5668\u6ca1\u6709\u8be5\u7ec4\u4ef6\u65f6\u6267\u884c\u8be5\u6b65\u9aa4&#xff09;<\/h3>\n<p> \u70b9\u51fb\u5982\u4e0b\u94fe\u63a5\u8bbf\u95ee\u963f\u91cc\u4e91\u955c\u50cf\u7f51\u7ad9\u4e0b\u8f7d net-tools \u7ec4\u4ef6 <\/p>\n<p>https:\/\/mirrors.aliyun.com\/centos\/8\/BaseOS\/x86_64\/os\/Packages\/<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075054-684a86de6e4be.png\" alt=\"\" \/><\/p>\n<p>\u4e0a\u4f20\u4e0b\u8f7d\u597d\u7684net-tools\u7ec4\u4ef6\u7684rpm\u5b89\u88c5\u5305<\/p>\n<p>\u5b89\u88c5net-tools rpm\u5b89\u88c5\u5305<\/p>\n<p><span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> net-tools-2.0-0.52.20160912git.el8.x86_64.rpm<\/p>\n<h3 id=\"sDBEj\">\u5b89\u88c5mysql-community-server\u5b89\u88c5\u5305<\/h3>\n<p><span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> mysql-community-server-8.0.32-1.el8.x86_64.rpm<\/p>\n<h3 id=\"PVo5O\">\u542f\u52a8mysql<\/h3>\n<p> \u67e5\u770bmysql\u670d\u52a1\u72b6\u6001<br \/>\nsystemctl status mysqld<\/p>\n<p>\u542f\u52a8mysql\u670d\u52a1<\/p>\n<p>systemctl start mysqld<\/p>\n<p>\u8bbe\u7f6emysql\u5f00\u673a\u542f\u52a8<\/p>\n<p>systemctl <span class=\"token builtin class-name\">enable<\/span> mysqld<\/p>\n<p>\u67e5\u770bmysql\u670d\u52a1\u662f\u5426\u5df2\u7ecf\u542f\u52a8<\/p>\n<p><span class=\"token function\">netstat<\/span> <span class=\"token parameter variable\">-tunlp<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> mysql<br \/>\n<span class=\"token comment\"># \u67e5\u770bLinux\u4e2d\u5df2\u7ecf\u542f\u52a8\u7684\u670d\u52a1<\/span><br \/>\n<span class=\"token function\">netstat<\/span> <span class=\"token parameter variable\">-tunlp<\/span><\/p>\n<p>\u67e5\u770bmysql\u8fdb\u7a0b<\/p>\n<p><span class=\"token function\">ps<\/span> <span class=\"token parameter variable\">-ef<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> mysql<\/p>\n<h3 id=\"AShMK\">\u767b\u5f55MySQL\u6570\u636e\u5e93<\/h3>\n<p> \u67e5\u770bmysql\u6570\u636e\u5e93\u4e34\u65f6\u5bc6\u7801 <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075056-684a86e0d4c2b.png\" alt=\"\" \/><\/p>\n<p>\u767b\u5f55mysql<\/p>\n<p><span class=\"token comment\"># \u767b\u5f55mysql&#xff08;\u56de\u8f66\u540e\u8f93\u5165\u5bc6\u7801&#xff09;\u3010\u8fd9\u91cc\u4f7f\u7528\u4e0a\u9762\u67e5\u8be2\u5230\u7684\u4e34\u65f6\u5bc6\u7801\u3011<\/span><br \/>\nmysql <span class=\"token parameter variable\">-uroot<\/span> <span class=\"token parameter variable\">-p<\/span><\/p>\n<p>\u4fee\u6539\u5bc6\u7801<\/p>\n<p>ALTER <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#039;root&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span> IDENTIFIED BY <span class=\"token string\">&#039;\u60a8\u7684\u5bc6\u7801&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fdc\u7a0b\u8fde\u63a5\u914d\u7f6e<\/p>\n<p><span class=\"token comment\"># \u5f00\u542f\u8fdc\u7a0b\u8bbf\u95ee\u6743\u9650<\/span><br \/>\ncreate <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#039;root&#039;<\/span>&#064;<span class=\"token string\">&#039;%&#039;<\/span> IDENTIFIED BY <span class=\"token string\">&#039;\u60a8\u7684\u5bc6\u7801&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\ngrant all privileges on *.* to <span class=\"token string\">&#039;root&#039;<\/span>&#064;<span class=\"token string\">&#039;%&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\"># \u5237\u65b0\u914d\u7f6e<\/span><br \/>\nflush privileges<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\"># \u8fd9\u91cc\u5c31\u9700\u8981\u4fee\u6539root\u5bc6\u7801&#xff0c;\u5982\u679c\u4e0d\u4fee\u6539&#xff0c;\u5bc6\u7801\u5c31\u4f1a\u88ab\u6539\u4e3apassword<\/span><br \/>\nALTER <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#039;root&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span> IDENTIFIED BY <span class=\"token string\">&#039;\u60a8\u7684\u5bc6\u7801&#039;<\/span> PASSWORD EXPIRE NEVER<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\"># \u5bc6\u7801\u4e0e\u4e0a\u4e00\u4e2a\u547d\u4ee4\u4fdd\u6301\u4e00\u81f4<\/span><br \/>\nALTER <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#039;root&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span> IDENTIFIED with mysql_native_password BY <span class=\"token string\">&#039;\u60a8\u7684\u5bc6\u7801&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nflush privileges<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">#\u5237\u65b0<\/span><\/p>\n<h3 id=\"P8rBI\"> \u5f00\u653e\u9632\u706b\u5899\u7aef\u53e3 <\/h3>\n<p>firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-port<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3306<\/span>\/tcp<br \/>\nfirewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/p>\n<h2 id=\"wd0dz\">redis\u5b89\u88c5<\/h2>\n<h3 id=\"rrv9P\">\u4e0b\u8f7dredis\u5b89\u88c5\u5305<\/h3>\n<p> \u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u4e0b\u8f7dredis\u7684\u5b89\u88c5\u5305 <\/p>\n<p>https:\/\/rpmfind.net\/linux\/rpm2html\/search.php?query&#061;redis&#038;submit&#061;Search&#043;\u2026&#038;system&#061;&#038;arch&#061;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075056-684a86e0f1546.png\" alt=\"\" \/><\/p>\n<h3 id=\"tIFuP\">\u4e0a\u4f20redis\u5b89\u88c5\u5305<\/h3>\n<p> \u8fdb\u5165home\u76ee\u5f55&#xff0c;\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aredis\u7684\u76ee\u5f55\u540d<br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/home\/<br \/>\n<span class=\"token comment\"># \u521b\u5efaredis\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> redis<br \/>\n<span class=\"token comment\"># \u8fdb\u5165redis\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> redis\/<\/p>\n<p>\u8fdb\u5165redis\u76ee\u5f55&#xff0c;\u4e0a\u4f20\u51c6\u5907\u7684redis rpm\u5b89\u88c5\u5305<\/p>\n<h3 id=\"iaa5P\">\u5b89\u88c5rpm\u5b89\u88c5\u5305<\/h3>\n<p><span class=\"token comment\"># \u5b89\u88c5\u547d\u4ee4<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span>  redis-6.0.20-1.el8.remi.x86_64.rpm<\/p>\n<h3 id=\"vQxU5\">\u542f\u52a8redis<\/h3>\n<p><span class=\"token comment\"># \u542f\u52a8redis<\/span><br \/>\nsystemctl start redis<br \/>\n<span class=\"token comment\"># \u67e5\u770breids\u8fd0\u884c\u72b6\u6001<\/span><br \/>\nsystemctl status redis<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075100-684a86e4eb08f.png\" alt=\"\" \/><\/p>\n<h3 id=\"jtVwV\">\u6d4b\u8bd5\u8fde\u63a5<\/h3>\n<p>redis-cli<\/p>\n<h2 id=\"uslSl\">nginx\u5b89\u88c5<\/h2>\n<h3 id=\"qQWVB\">\u4e0b\u8f7dnginx\u5b89\u88c5\u5305<\/h3>\n<p> \u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u4e0b\u8f7dnginx\u7684\u5b89\u88c5\u5305 <\/p>\n<p>https:\/\/nginx.org\/en\/download.html#_ts1749006593502<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075102-684a86e656e0a.png\" alt=\"\" \/><\/p>\n<h3 id=\"tLuGe\">\u4e0a\u4f20nginx\u5b89\u88c5\u5305<\/h3>\n<p> \u8fdb\u5165home\u76ee\u5f55&#xff0c;\u521b\u5efa\u4e00\u4e2a\u540d\u4e3anginx\u7684\u76ee\u5f55\u540d<br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/home\/<br \/>\n<span class=\"token comment\"># \u521b\u5efanginx\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> nginx<br \/>\n<span class=\"token comment\"># \u8fdb\u5165nginx\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> nginx\/<\/p>\n<p>\u8fdb\u5165nginx\u76ee\u5f55&#xff0c;\u4e0a\u4f20\u51c6\u5907\u7684nginx\u5b89\u88c5\u5305<\/p>\n<h3 id=\"u0fX4\">\u89e3\u538b\u5b89\u88c5\u5305<\/h3>\n<p><span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-xzf<\/span> nginx-1.24.0.tar.gz<\/p>\n<h3 id=\"EWwwg\">\u7f16\u8bd1\u5b89\u88c5<\/h3>\n<p> \u7f16\u8bd1\u5b89\u88c5\u9ed8\u8ba4\u7684\u8def\u5f84\u662f\/usr\/local\/nginx&#xff0c;\u5b89\u88c5\u6210\u529f\u4e4b\u540e&#xff0c;\u5220\u9664home\u8def\u5f84\u4e0b\u521b\u5efa\u7684nginx\u76f8\u5173\u76ee\u5f55<br \/>\n<span class=\"token comment\"># \u52a0\u5165nginx\u89e3\u538b\u6587\u4ef6\u5939<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> nginx-1.24.0<br \/>\n<span class=\"token comment\"># \u7f16\u8bd1<\/span><br \/>\n.\/configure<br \/>\n<span class=\"token comment\"># \u5b89\u88c5<\/span><br \/>\n<span class=\"token function\">make<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">make<\/span> <span class=\"token function\">install<\/span><\/p>\n<h3 id=\"CDdS5\"> nginx \u52a0\u5165\u73af\u5883\u53d8\u91cf <\/h3>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;export PATH&#061;$PATH:\/usr\/local\/nginx\/sbin&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<br \/>\n<span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<br \/>\nnginx <span class=\"token parameter variable\">-v<\/span><\/p>\n<h3 id=\"wIO96\">\u624b\u52a8\u6dfb\u52a0 nginx \u7684 systemd \u670d\u52a1\u6587\u4ef6 <\/h3>\n<p> \u521b\u5efa\u6587\u4ef6<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/usr\/lib\/systemd\/system\/nginx.service<\/p>\n<p>\u5185\u5bb9\u5982\u4e0b&#xff08;\u9002\u7528\u4e8e\u5927\u591a\u6570\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84&#xff09;<\/p>\n<p>[Unit]<br \/>\nDescription&#061;The NGINX HTTP and reverse proxy server<br \/>\nAfter&#061;network.target<\/p>\n<p>[Service]<br \/>\nExecStart&#061;\/usr\/local\/nginx\/sbin\/nginx<br \/>\nExecReload&#061;\/usr\/local\/nginx\/sbin\/nginx -s reload<br \/>\nExecStop&#061;\/usr\/local\/nginx\/sbin\/nginx -s quit<br \/>\nPIDFile&#061;\/usr\/local\/nginx\/logs\/nginx.pid<br \/>\nType&#061;forking<br \/>\nPrivateTmp&#061;true<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u6ce8\u610f\u4fee\u6539 \/usr\/local\/nginx\/ \u8def\u5f84\u4e3a\u4f60\u81ea\u5df1\u7684\u5b89\u88c5\u8def\u5f84<\/p>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa nano \u7684\u64cd\u4f5c\u65b9\u5f0f&#xff1a;<\/p>\n<ul>\n<li>**\u6309\u4e0b ****Ctrl &#043; O** &#xff08;O \u662f Output \u7684\u610f\u601d&#xff0c;\u7528\u4e8e\u4fdd\u5b58\u6587\u4ef6&#xff09;<\/li>\n<li>\u5b83\u4f1a\u5728\u5e95\u90e8\u63d0\u793a\u4f60\u4fdd\u5b58\u7684\u6587\u4ef6\u540d&#xff08;\u9ed8\u8ba4\u5c31\u662f\u4f60\u521a\u6253\u5f00\u7684 \/usr\/lib\/systemd\/system\/nginx.service&#xff09; \u76f4\u63a5\u6309 **Enter** \u952e\u786e\u8ba4\u4fdd\u5b58<\/li>\n<li>\u7136\u540e **\u6309\u4e0b ****Ctrl &#043; X** &#xff08;\u9000\u51fa nano \u7f16\u8f91\u5668&#xff09;<\/li>\n<\/ul>\n<p>\u4fdd\u5b58\u540e\u6267\u884c<\/p>\n<p>systemctl daemon-reload<br \/>\nsystemctl enable nginx<br \/>\nsystemctl start nginx<br \/>\nsystemctl status nginx<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075105-684a86e91d74d.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb768\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u6587\u63d0\u4f9b\u4e86Java\u3001MySQL\u3001Redis\u548cNginx\u5728Linux\u7cfb\u7edf\u4e0a\u7684\u8be6\u7ec6\u5b89\u88c5\u6559\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a Java\u5b89\u88c5\uff1a\u4e0b\u8f7dJDK11\uff0c\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u9a8c\u8bc1\u5b89\u88c5\uff1b MySQL\u5b89\u88c5\uff1a\u4e0b\u8f7dRPM\u5305\uff0c\u6309\u987a\u5e8f\u5b89\u88c5\u7ec4\u4ef6\uff0c\u914d\u7f6e\u8fdc\u7a0b\u8bbf\u95ee\u548c\u9632\u706b\u5899\uff1b Redis\u5b89\u88c5\uff1a\u901a\u8fc7RPM\u5305\u5b89\u88c5\uff0c\u542f\u52a8\u5e76\u6d4b\u8bd5\u8fde\u63a5\uff1b Nginx\u5b89\u88c5\uff1a\u4e0b\u8f7d\u6e90\u7801\u5305\uff0c\u521b\u5efa\u5b89\u88c5\u76ee\u5f55\u51c6\u5907\u7f16\u8bd1\u5b89\u88c5\u3002\u6bcf\u4e2a\u6b65\u9aa4\u90fd\u5305\u542b\u5177\u4f53\u7684\u547d\u4ee4\u64cd\u4f5c\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u9002\u5408\u65b0\u624b\u6309\u7167\u6307\u5f15\u5b8c\u6210\u8fd9\u4e9b\u5e38\u7528\u8f6f\u4ef6\u7684\u5b89\u88c5\u90e8\u7f72\u3002<\/p>\n","protected":false},"author":2,"featured_media":43489,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,43],"topic":[],"class_list":["post-43498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e - \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\/43498.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb768\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u6587\u63d0\u4f9b\u4e86Java\u3001MySQL\u3001Redis\u548cNginx\u5728Linux\u7cfb\u7edf\u4e0a\u7684\u8be6\u7ec6\u5b89\u88c5\u6559\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a Java\u5b89\u88c5\uff1a\u4e0b\u8f7dJDK11\uff0c\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u9a8c\u8bc1\u5b89\u88c5\uff1b MySQL\u5b89\u88c5\uff1a\u4e0b\u8f7dRPM\u5305\uff0c\u6309\u987a\u5e8f\u5b89\u88c5\u7ec4\u4ef6\uff0c\u914d\u7f6e\u8fdc\u7a0b\u8bbf\u95ee\u548c\u9632\u706b\u5899\uff1b Redis\u5b89\u88c5\uff1a\u901a\u8fc7RPM\u5305\u5b89\u88c5\uff0c\u542f\u52a8\u5e76\u6d4b\u8bd5\u8fde\u63a5\uff1b Nginx\u5b89\u88c5\uff1a\u4e0b\u8f7d\u6e90\u7801\u5305\uff0c\u521b\u5efa\u5b89\u88c5\u76ee\u5f55\u51c6\u5907\u7f16\u8bd1\u5b89\u88c5\u3002\u6bcf\u4e2a\u6b65\u9aa4\u90fd\u5305\u542b\u5177\u4f53\u7684\u547d\u4ee4\u64cd\u4f5c\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u9002\u5408\u65b0\u624b\u6309\u7167\u6307\u5f15\u5b8c\u6210\u8fd9\u4e9b\u5e38\u7528\u8f6f\u4ef6\u7684\u5b89\u88c5\u90e8\u7f72\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/43498.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-12T07:51:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075049-684a86d9d5930.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43498.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/43498.html\",\"name\":\"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-12T07:51:06+00:00\",\"dateModified\":\"2025-06-12T07:51:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/43498.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/43498.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43498.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e\"}]},{\"@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":"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e - \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\/43498.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb768\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u6587\u63d0\u4f9b\u4e86Java\u3001MySQL\u3001Redis\u548cNginx\u5728Linux\u7cfb\u7edf\u4e0a\u7684\u8be6\u7ec6\u5b89\u88c5\u6559\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a Java\u5b89\u88c5\uff1a\u4e0b\u8f7dJDK11\uff0c\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u9a8c\u8bc1\u5b89\u88c5\uff1b MySQL\u5b89\u88c5\uff1a\u4e0b\u8f7dRPM\u5305\uff0c\u6309\u987a\u5e8f\u5b89\u88c5\u7ec4\u4ef6\uff0c\u914d\u7f6e\u8fdc\u7a0b\u8bbf\u95ee\u548c\u9632\u706b\u5899\uff1b Redis\u5b89\u88c5\uff1a\u901a\u8fc7RPM\u5305\u5b89\u88c5\uff0c\u542f\u52a8\u5e76\u6d4b\u8bd5\u8fde\u63a5\uff1b Nginx\u5b89\u88c5\uff1a\u4e0b\u8f7d\u6e90\u7801\u5305\uff0c\u521b\u5efa\u5b89\u88c5\u76ee\u5f55\u51c6\u5907\u7f16\u8bd1\u5b89\u88c5\u3002\u6bcf\u4e2a\u6b65\u9aa4\u90fd\u5305\u542b\u5177\u4f53\u7684\u547d\u4ee4\u64cd\u4f5c\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u9002\u5408\u65b0\u624b\u6309\u7167\u6307\u5f15\u5b8c\u6210\u8fd9\u4e9b\u5e38\u7528\u8f6f\u4ef6\u7684\u5b89\u88c5\u90e8\u7f72\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/43498.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-12T07:51:06+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612075049-684a86d9d5930.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/43498.html","url":"https:\/\/www.wsisp.com\/helps\/43498.html","name":"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-12T07:51:06+00:00","dateModified":"2025-06-12T07:51:06+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/43498.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/43498.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/43498.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7edf\u4fe1\u670d\u52a1\u5668java\u73af\u5883\u914d\u7f6e"}]},{"@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\/43498","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=43498"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43498\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/43489"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=43498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=43498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=43498"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=43498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}