{"id":13114,"date":"2025-04-18T20:13:18","date_gmt":"2025-04-18T12:13:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/13114.html"},"modified":"2025-04-18T20:13:18","modified_gmt":"2025-04-18T12:13:18","slug":"ocpp%e6%9c%8d%e5%8a%a1%e5%99%a8steve%e7%bc%96%e8%af%91%e6%90%ad%e5%bb%ba%e5%85%a8%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/13114.html","title":{"rendered":"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\u8fc7\u7a0b"},"content":{"rendered":"<p>\u6ce8\u610f&#xff1a;\u5efa\u8bae\u4f7f\u75283.6.0&#xff0c;\u6211\u5347\u7ea7\u52303.7.1&#xff0c;\u5e76\u6ca1\u6709\u591a\u4ec0\u4e48\u65b0\u529f\u80fd&#xff0c;\u53cd\u800c\u7535\u8868\u7684\u5b9e\u65f6\u6570\u636e\u53ea\u80fd\u770b\u5230\u7d2f\u8ba1\u7535\u80fd\u4e86&#xff0c;\u6211\u56de\u9000\u4e86\u5c31\u6b63\u5e38&#xff0c;\u6570\u636e\u5e93\u662f\u517c\u5bb9\u7684&#xff0c;java\u7248\u672c\u6362\u4f4djava11&#xff0c;\u5176\u4ed6\u4e0d\u53d8\u5c31\u597d<\/p>\n<p>\u80cc\u666f&#xff1a; \u56fd\u5916\u6b27\u6807\u5145\u7535\u6869\u5f00\u53d1\u4e2d&#xff0c;\u670d\u52a1\u5668\u5bf9\u63a5\u662f\u5f88\u91cd\u8981\u7684\u4e00\u73af&#xff0c;\u51fa\u56fd\u5916\u7684\u57fa\u672c\u90fd\u662f\u9700\u8981\u652f\u6301OCPP\u529f\u80fd&#xff0c;\u57fa\u672c\u8981\u6c42\u662fOCPP1.6&#xff0c;\u8fd8\u6709\u4e9b\u5ba2\u6237\u5df2\u7ecf\u5f00\u59cb\u89812.0\u4e86&#xff0c;OCPP\u6d4b\u8bd5\u81f3\u5173\u91cd\u8981&#xff0c;\u76ee\u524d\u6709\u4e24\u79cd\u6d4b\u8bd5\u65b9\u6cd5&#xff0c;1&#xff0c;\u4f7f\u7528Monta\u670d\u52a1\u5668&#xff0c;\u53bb\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7&#xff0c;\u7136\u540e\u94fe\u63a5\u8c03\u8bd5\u5373\u53ef&#xff0c;2.\u81ea\u5df1\u5728\u4e91\u7aef\u642d\u5efa\u4e00\u4e2a\u81ea\u5df1\u7684OCPP\u5e73\u53f0&#xff08;SteVe&#xff09;\u3002 \u4e24\u4e2a\u5e73\u53f0\u6211\u90fd\u6709\u4f7f\u7528&#xff0c;\u7528\u5f97\u591a\u5e76\u4e14\u987a\u624b\u7684\u662fSteVe\u5e73\u53f0\u3002\u4ee5\u4e0b\u662f\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\u4f7f\u7528\u540e\u7684\u611f\u53d7\u3002 Monta\u5e73\u53f0\u754c\u9762\u6bd4\u8f83\u5355\u4e00&#xff0c;\u4e0b\u53d1\u7684\u547d\u4ee4\u7684\u5e94\u7b54\u53ea\u80fd\u770blog\u91cc\u9762\u627e\u5230\u5bf9\u5e94\u7684\u5e94\u7b54\u6570\u636e&#xff08;json&#xff09;&#xff0c;\u4f18\u70b9\u662f\u6709\u8ba4\u8bc1\u6d4b\u8bd5\u529f\u80fd&#xff0c;\u53ef\u4ee5\u514d\u8d39\u81ea\u5df1\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7\u5c31\u80fd\u4f7f\u7528&#xff0c;\u514d\u8d39https:\/\/ocpp-toolkit.monta.app\/ <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121314-680241dab8e6c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121315-680241db22bd9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>SteVe\u5e73\u53f0\u754c\u9762\u4e30\u5bcc&#xff0c;\u53ef\u4ee5\u7ba1\u7406ocpp tags&#xff08;\u5145\u7535\u5361&#xff09;\u6216\u8005get configration\u7684\u65f6\u5019\u9884\u8bbe\u5f88\u591a\u7cfb\u7edf\u7684key\u4f7f\u7528&#xff0c;\u5e94\u7b54\u547d\u4ee4\u4f1a\u5e2e\u4f60\u89e3\u6790\u5728\u9875\u9762\u663e\u793a\u51fa\u6765&#xff0c;\u76ee\u524dSteVe\u5e73\u53f0\u662f\u6700\u5b8c\u5584\u7684&#xff0c;\u5e76\u4e14\u662f\u5f00\u6e90\u514d\u8d39\u7684\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121315-680241dbb2f74.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121316-680241dc2c1dc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7efc\u4e0a\u6240\u8ff0&#xff0c;\u81ea\u5df1\u642d\u5efa\u4e00\u4e2a\u670d\u52a1\u5668\u5c31\u5f88\u6709\u5fc5\u8981\u4e86\u3002<\/p>\n<p>SteVe\u5e73\u53f0\u642d\u5efa\u4e3b\u8981\u6d41\u7a0b&#xff1a;<\/p>\n<ul>\n<li>1.\u5148\u51c6\u5907\u4e00\u4e2a\u4e91\u670d\u52a1\u5668&#xff0c;\u5982\u679c\u6ca1\u6709\u4e91\u670d\u52a1\u5668&#xff0c;\u53ef\u4ee5\u8003\u8651\u7528\u865a\u62df\u673a\u5b89\u88c5\u4e00\u4e2acentos7&#xff0c;\u7136\u540e\u628a\u8fd9\u4e2a\u673a\u5668\u6620\u5c04\u5230\u5916\u7f51\u4e34\u65f6\u7528\u4e5f\u884c\u3002<\/li>\n<li>2.\u4e0b\u8f7dSteVe\u5b98\u65b9\u6e90\u7801\u5305&#xff0c;\u6211\u8fd9\u91cc\u5c31\u75283.17.1\u4e3e\u4f8b\u3002\u5b98\u65b9\u6e90\u7801\u5728GitHub https:\/\/github.com\/steve-community\/steve\u3002<\/li>\n<li>3.\u6570\u636e\u5e93MYSQL8\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e&#xff0c;\u56e0\u4e3aCentOS\u4f7f\u7528\u7684\u662fmariadb&#xff0c;\u4f46\u4f60\u53bb\u7f16\u8bd1SteVe\u7684\u65f6\u5019\u4f60\u4f1a\u53d1\u73b0\u63d0\u793a\u975e\u957f\u671f\u652f\u6301\u7248&#xff0c;\u4f1a\u62a5\u9519\u3002<\/li>\n<li>4.\u5b89\u88c5Java17&#xff0c;Centos\u5185\u7f6e\u4e86Java\u5de5\u5177&#xff0c;\u4f46\u67e5\u770b\u7248\u672c\u53d1\u73b0\u662f1.8\u7684&#xff0c;SteVe3.7.1\u8981\u6c42\u662fJava17&#xff0c;\u5220\u9664Java1.8\u518d\u5b89\u88c5Java17.<\/li>\n<li>5.\u7f16\u8bd1SteVe\u6e90\u7801\u3002<\/li>\n<li>6.\u8fd0\u884c&#xff0c;\u6d4b\u8bd5<\/li>\n<li>7.\u5236\u4f5c\u5f00\u673a\u81ea\u542f\u3002<\/li>\n<\/ul>\n<p>\u8be6\u7ec6\u6b65\u9aa4&#xff1a; 1.\u4e0b\u8f7dSteVe\u6e90\u7801\u3002\u5e76\u9605\u8bfbREADME.md&#xff0c;\u4e86\u89e3\u8fd9\u4e2a\u5e73\u53f0\u9700\u8981\u7528\u5230\u7684\u73af\u5883&#xff0c;\u5148\u914d\u7f6e\u597d\u8fd9\u4e9b\u73af\u5883&#xff0c;\u7136\u540e\u4e86\u89e3\u7f16\u8bd1\u5de5\u5177\u548c\u7f16\u8bd1\u8fd0\u884c\u3002\u7ecf\u8fc7\u9605\u8bfb\u53d1\u73b0\u9700\u8981\u4f7f\u7528mysql8&#xff0c;java17&#xff0c;Maven 2.\u9996\u5148\u6765\u5b89\u88c5\u6570\u636e\u5e93&#xff0c;\u6570\u636e\u5e93MYSQL8\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e&#xff0c;\u67e5\u770b\u5f53\u524dmariadb\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p>rpm -e &#8211;nodeps \u4e0a\u4e00\u6761\u547d\u4ee4\u5217\u51fa\u7684\u6587\u4ef6\u540d\u3002 rpm -qa|grep mariadb \u7528\u4e8e\u68c0\u67e5\u662f\u5426\u5378\u8f7d\u5e72\u51c0\u3002<\/p>\n<p>\u8ba9AI\u5e2e\u5fd9\u5199\u4e86\u4e00\u4e2acentos7\u5b89\u88c5mysql8\u7684\u811a\u6b65&#xff0c;\u8fd9\u6837\u6bd4\u4f20\u7edf\u7684\u4e0b\u8f7d\u5b89\u88c5\u66f4\u7701\u4e8b<\/p>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><\/p>\n<p><span class=\"token comment\"># Exit script on any error<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> <span class=\"token parameter variable\">-e<\/span><\/p>\n<p><span class=\"token comment\"># Fixed password to be used<\/span><br \/>\n<span class=\"token assign-left variable\">fixed_password<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;Msb666666&#034;<\/span><\/p>\n<p><span class=\"token comment\"># 1. Add the MySQL Yum repository<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Adding the MySQL Yum repository&#8230;&#034;<\/span><br \/>\n<span class=\"token function\">wget<\/span> https:\/\/dev.mysql.com\/get\/mysql80-community-release-el7-3.noarch.rpm<\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Checking the integrity of the downloaded package&#8230;&#034;<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">&#8211;import<\/span> https:\/\/repo.mysql.com\/RPM-GPG-KEY-mysql<\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Installing the MySQL Yum repository&#8230;&#034;<\/span><br \/>\nyum localinstall mysql80-community-release-el7-3.noarch.rpm <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><span class=\"token comment\"># 2. Install the MySQL server<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Installing the MySQL server&#8230;&#034;<\/span><br \/>\nyum <span class=\"token function\">install<\/span> mysql-community-server <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><span class=\"token comment\"># 3. Start the MySQL service<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Starting the MySQL service&#8230;&#034;<\/span><br \/>\nsystemctl start mysqld<br \/>\nsystemctl <span class=\"token builtin class-name\">enable<\/span> mysqld<\/p>\n<p><span class=\"token comment\"># 4. Get the temporary password generated for the root user<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Retrieving the temporary password&#8230;&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">temp_password<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">grep<\/span> <span class=\"token string\">&#039;temporary password&#039;<\/span> \/var\/log\/mysqld.log <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-1<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">rev<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">cut<\/span> -d<span class=\"token string\">&#034; &#034;<\/span> <span class=\"token parameter variable\">-f1<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">rev<\/span><span class=\"token variable\">)<\/span><\/span><\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;The temporary MySQL root password is: <span class=\"token variable\">$temp_password<\/span>&#034;<\/span><\/p>\n<p><span class=\"token comment\"># 5. Change the root user&#039;s password to the desired fixed password<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Changing the root user&#039;s password&#8230;&#034;<\/span><\/p>\n<p>mysql &#8211;connect-expired-password <span class=\"token parameter variable\">-uroot<\/span> -p<span class=\"token string\">&#034;<span class=\"token variable\">$temp_password<\/span>&#034;<\/span> <span class=\"token operator\">&lt;&lt;-<\/span><span class=\"token string\">EOF<br \/>\nALTER USER &#039;root&#039;&#064;&#039;localhost&#039; IDENTIFIED BY &#039;<span class=\"token variable\">$fixed_password<\/span>&#039;;<br \/>\nFLUSH PRIVILEGES;<br \/>\nEOF<\/span><\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;The root password has been successfully changed to the fixed password.&#034;<\/span><\/p>\n<p><span class=\"token comment\"># Optionally, you can run the mysql_secure_installation steps here if you want to automate it further.<\/span><\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;MySQL 8 installation is complete.&#034;<\/span><\/p>\n<p>\u8fd8\u6709mysql\u8fd0\u884c\u811a\u672c<\/p>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><\/p>\n<p><span class=\"token comment\"># This script starts the MySQL service and sets it to launch on boot<\/span><\/p>\n<p><span class=\"token comment\"># Exit script on any error<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> <span class=\"token parameter variable\">-e<\/span><\/p>\n<p><span class=\"token comment\"># Start the MySQL service<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Starting the MySQL service&#8230;&#034;<\/span><br \/>\nsystemctl start mysqld<\/p>\n<p><span class=\"token comment\"># Enable the MySQL service to start on boot<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Setting the MySQL service to start on boot&#8230;&#034;<\/span><br \/>\nsystemctl <span class=\"token builtin class-name\">enable<\/span> mysqld<\/p>\n<p><span class=\"token comment\"># Confirmation message<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;MySQL service has been started and set to launch on boot.&#034;<\/span><\/p>\n<p>\u5b89\u88c5\u597d\u4e86\u4e4b\u540e\u901a\u8fc7ssh\u547d\u4ee4\u884c\u767b\u9646\u6570\u636e\u5e93<\/p>\n<p>mysql <span class=\"token parameter variable\">-u<\/span> root<\/p>\n<p>\u63a5\u4e0b\u6765\u4e3asteve\u521b\u5efa\u76f8\u5173\u6570\u636e<\/p>\n<p>steve \u6570\u636e\u5e93mysql8 \u7528\u6237\u540d&#xff1a;root \u5bc6\u7801&#xff1a;Msb666666&#064;, Steve\u6570\u636e\u5e93\u7528\u6237\u540d&#xff1a;steve \u5bc6\u7801&#xff1a;changeme<\/p>\n<p>\u811a\u672c\u5b89\u88c5\u540e\u9700\u8981\u66f4\u65b0\u9ed8\u8ba4\u7684\u968f\u673a\u5bc6\u7801&#xff0c;\u5bc6\u7801\u4e0d\u80fd\u592a\u7b80\u5355&#xff0c;\u9700\u8981\u5e26\u70b9\u7b26\u5408&#xff0c;\u5426\u5219\u4f1a\u5931\u8d25<\/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;Msb666666&#064;,&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nFLUSH PRIVILEGES<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u521b\u5efaSteVe\u9700\u8981\u7528\u5230\u7684\u6570\u636e\u5e93stevedb<\/p>\n<p>CREATE DATABASE stevedb CHARACTER SET utf8 COLLATE utf8_unicode_ci<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u521b\u5efa\u5b8c\u6bd5\u540e\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u4e00\u4e0b&#xff0c;\u53ef\u4ee5\u770b\u5230Stevedb<\/p>\n<p>mysql<span class=\"token operator\">&gt;<\/span> show databases<span class=\"token punctuation\">;<\/span><br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n<span class=\"token operator\">|<\/span> Database           <span class=\"token operator\">|<\/span><br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n<span class=\"token operator\">|<\/span> information_schema <span class=\"token operator\">|<\/span><br \/>\n<span class=\"token operator\">|<\/span> mysql              <span class=\"token operator\">|<\/span><br \/>\n<span class=\"token operator\">|<\/span> performance_schema <span class=\"token operator\">|<\/span><br \/>\n<span class=\"token operator\">|<\/span> stevedb            <span class=\"token operator\">|<\/span><br \/>\n<span class=\"token operator\">|<\/span> sys                <span class=\"token operator\">|<\/span><br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n<span class=\"token number\">5<\/span> rows <span class=\"token keyword\">in<\/span> <span class=\"token builtin class-name\">set<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">0.00<\/span> sec<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u518d\u4e3a\u8fd9\u4e2a\u6570\u636e\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u7528\u6237steve&#xff0c;\u8fd9\u4e2a\u548cSteVe\u5e73\u53f0README.md\u9ed8\u8ba4\u7528\u6237\u540d\u548c\u5bc6\u7801\u4fdd\u6301\u4e00\u81f4&#xff0c;\u5426\u5219\u4e24\u8fb9\u4e00\u8d77\u6539\u3002<\/p>\n<p>CREATE <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#039;steve&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span> IDENTIFIED BY <span class=\"token string\">&#039;changeme&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nGRANT ALL PRIVILEGES ON stevedb.* TO <span class=\"token string\">&#039;steve&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nGRANT SUPER ON *.* TO <span class=\"token string\">&#039;steve&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u7136\u540e\u9000\u51fa\u6570\u636e\u5e93\u5c1d\u8bd5\u4f7f\u7528\u65b0\u6570\u636e\u5e93\u7528\u6237\u767b\u9646<\/p>\n<p>  mysql <span class=\"token parameter variable\">-u<\/span> steve <span class=\"token parameter variable\">-p<\/span><\/p>\n<p>Type <span class=\"token string\">&#039;help;&#039;<\/span> or <span class=\"token string\">&#039;\\\\h&#039;<\/span> <span class=\"token keyword\">for<\/span> help. Type <span class=\"token string\">&#039;\\\\c&#039;<\/span> to <span class=\"token function\">clear<\/span> the current input statement.<\/p>\n<p>mysql<span class=\"token operator\">&gt;<\/span> show databases<span class=\"token punctuation\">;<\/span><br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n<span class=\"token operator\">|<\/span> Database           <span class=\"token operator\">|<\/span><br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n<span class=\"token operator\">|<\/span> information_schema <span class=\"token operator\">|<\/span><br \/>\n<span class=\"token operator\">|<\/span> performance_schema <span class=\"token operator\">|<\/span><br \/>\n<span class=\"token operator\">|<\/span> stevedb            <span class=\"token operator\">|<\/span><br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n<span class=\"token number\">3<\/span> rows <span class=\"token keyword\">in<\/span> <span class=\"token builtin class-name\">set<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">0.00<\/span> sec<span class=\"token punctuation\">)<\/span><\/p>\n<p>mysql<span class=\"token operator\">&gt;<\/span> <\/p>\n<p>\u8fd9\u6837\u5c31\u5b8c\u6210\u4e86&#xff0c;\u4e0d\u9700\u8981\u5efa\u8868&#xff0c;\u8fd9\u4e2aSteVe\u5728\u6253\u5305\u7f16\u8bd1\u548c\u8fd0\u884c\u7684\u65f6\u5019\u90fd\u4f1a\u81ea\u52a8\u5efa\u8868\u3002 \u7f16\u8bd1\u4e4b\u524d\u8fd8\u9700\u8981\u6539\u4e00\u4e0b\u6570\u636e\u5e93\u9ed8\u8ba4\u65f6\u533a&#xff0c;\u89e3\u51b3java\u7f16\u8bd1\u7684\u65f6\u5019\u65f6\u533a\u95ee\u9898\u3002<\/p>\n<p> <span class=\"token function\">vi<\/span>  \/etc\/my.cnf<\/p>\n<p>\u589e\u52a0default-time-zone&#061;\u2018&#043;08:00\u2019<\/p>\n<p>\u91cd\u542f\u6570\u636e\u5e93<\/p>\n<p> systemctl restart mysqld<\/p>\n<p>\u6570\u636e\u5e93\u597d\u4e86&#xff0c;\u8fd8\u9700\u8981Java\u8fd0\u884c\u73af\u5883<\/p>\n<p>  yum <span class=\"token function\">install<\/span> java-17-openjdk-devel<\/p>\n<p>\u5982\u679c\u7cfb\u7edf\u91cc\u6709\u591a\u4e2ajava\u7248\u672c\u53ef\u4ee5\u4f7f\u7528alternatives\u6765\u5207\u6362<\/p>\n<p>CentOS \u652f\u6301\u901a\u8fc7 alternatives \u547d\u4ee4\u6765\u7ba1\u7406\u591a\u4e2a\u7248\u672c\u7684 Java\u3002\u60a8\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u8bbe\u7f6e&#xff1a;<\/p>\n<p>alternatives <span class=\"token parameter variable\">&#8211;install<\/span> \/usr\/bin\/javac <span class=\"token function\">java<\/span> \/usr\/lib\/jvm\/temurin-17-jdk\/bin\/java <span class=\"token number\">1<\/span><br \/>\nalternatives <span class=\"token parameter variable\">&#8211;install<\/span> \/usr\/bin\/javac javac \/usr\/lib\/jvm\/temurin-17-jdk\/bin\/javac <span class=\"token number\">1<\/span><\/p>\n<p><span class=\"token function\">sudo<\/span> alternatives <span class=\"token parameter variable\">&#8211;config<\/span> <span class=\"token function\">java<\/span><\/p>\n<p>\u9009\u62e9Java17\u5373\u53ef<\/p>\n<p>\u4fee\u6539Steve\u4ee3\u7801 \u4fee\u6539Java\u4ee3\u7801&#xff0c;\u6539\u5230\u4e0a\u6d77\u65f6\u533a\u4e1c\u516b\u533a&#xff0c;\u65b9\u4fbf\u6d4b\u8bd5\u4f7f\u7528<\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Application<\/span> <span class=\"token keyword\">implements<\/span> <span class=\"token class-name\">ApplicationStarter<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">AutoCloseable<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">ApplicationStarter<\/span> delegate<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">public<\/span> <span class=\"token class-name\">Application<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ For Hibernate validator<\/span><br \/>\n        <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">setProperty<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;org.jboss.logging.provider&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;slf4j&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token class-name\">SteveConfiguration<\/span> sc <span class=\"token operator\">&#061;<\/span> <span class=\"token class-name\">SteveConfiguration<\/span><span class=\"token punctuation\">.<\/span><span class=\"token constant\">CONFIG<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        log<span class=\"token punctuation\">.<\/span><span class=\"token function\">info<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Loaded the properties. Starting with the &#039;{}&#039; profile&#034;<\/span><span class=\"token punctuation\">,<\/span> sc<span class=\"token punctuation\">.<\/span><span class=\"token function\">getProfile<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u8bbe\u7f6ejava.util.TimeZone\u7684\u9ed8\u8ba4\u65f6\u533a\u4e3a\u4e1c\u516b\u533a<\/span><br \/>\n        <span class=\"token class-name\">TimeZone<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">setDefault<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">TimeZone<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">getTimeZone<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Asia\/Shanghai&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token class-name\">DateTimeZone<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">setDefault<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">DateTimeZone<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">forID<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Asia\/Shanghai&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/TimeZone.setDefault(TimeZone.getTimeZone(sc.getTimeZoneId()));<\/span><br \/>\n        <span class=\"token comment\">\/\/DateTimeZone.setDefault(DateTimeZone.forID(sc.getTimeZoneId()));<\/span><br \/>\n        log<span class=\"token punctuation\">.<\/span><span class=\"token function\">info<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Date\/time zone of the application is set to {}. Current date\/time: {}&#034;<\/span><span class=\"token punctuation\">,<\/span> sc<span class=\"token punctuation\">.<\/span><span class=\"token function\">getTimeZoneId<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">DateTime<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">now<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token keyword\">switch<\/span> <span class=\"token punctuation\">(<\/span>sc<span class=\"token punctuation\">.<\/span><span class=\"token function\">getProfile<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">case<\/span> <span class=\"token constant\">DEV<\/span><span class=\"token operator\">:<\/span><\/p>\n<p>\u9ed8\u8ba4\u7684\u914d\u7f6e\u90e8\u7f72\u5230\u670d\u52a1\u5668\u662f\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u7684&#xff0c;\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u914d\u7f6e&#xff0c;\u6570\u636e\u5e93\u90e8\u5206\u4e00\u5b9a\u8981\u548c\u524d\u9762\u914d\u7f6e\u7684\u6570\u636e\u5e93\u7684\u97a5\u51b7\u4fe1\u606f\u548c\u7aef\u53e3\u4e00\u6837&#xff0c;\u7f51\u9875\u767b\u5f55\u4fe1\u606f\u5efa\u8bae\u6539\u4e3a\u81ea\u5df1\u7684\u5bc6\u7801&#xff0c;\u6700\u597d\u8fd8\u662f\u968f\u673a\u5bc6\u7801&#xff0c;\u4fee\u6539\u7684java\u914d\u7f6e\u6587\u4ef6\u5728src\\\\main\\\\resources\\\\config\\\\prod\\\\main.properties<\/p>\n<p><span class=\"token comment\"># Just to be backwards compatible with previous versions, this is set to &#034;steve&#034;,<\/span><br \/>\n<span class=\"token comment\"># since there might be already configured chargepoints expecting the older path.<\/span><br \/>\n<span class=\"token comment\"># Otherwise, might as well be changed to something else or be left empty.<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\ncontext.path <span class=\"token operator\">&#061;<\/span> steve<\/p>\n<p><span class=\"token comment\"># Database configuration<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\ndb.ip <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">127.0<\/span>.0.1<br \/>\ndb.port <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">3306<\/span><br \/>\ndb.schema <span class=\"token operator\">&#061;<\/span> stevedb<br \/>\ndb.user <span class=\"token operator\">&#061;<\/span> steve<br \/>\ndb.password <span class=\"token operator\">&#061;<\/span> changeme<\/p>\n<p><span class=\"token comment\"># Credentials for Web interface access<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nauth.user <span class=\"token operator\">&#061;<\/span> admin<br \/>\nauth.password <span class=\"token operator\">&#061;<\/span> \u5199\u4e0a\u4f60\u7684\u5bc6\u7801<\/p>\n<p><span class=\"token comment\"># The header key and value for Web API access using API key authorization.<\/span><br \/>\n<span class=\"token comment\"># Both must be set for Web APIs to be enabled. Otherwise, we will block all calls.<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nwebapi.key <span class=\"token operator\">&#061;<\/span> STEVE-API-KEY<br \/>\nwebapi.value <span class=\"token operator\">&#061;<\/span><\/p>\n<p><span class=\"token comment\"># Jetty configuration<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nserver.host <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0.0<\/span>.0.0<br \/>\nserver.gzip.enabled <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">true<\/span><\/p>\n<p><span class=\"token comment\"># Jetty HTTP configuration<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nhttp.enabled <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">true<\/span><br \/>\nhttp.port <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">8080<\/span><\/p>\n<p><span class=\"token comment\"># Jetty HTTPS configuration<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nhttps.enabled <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">false<\/span><br \/>\nhttps.port <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">8443<\/span><br \/>\nkeystore.path <span class=\"token operator\">&#061;<\/span><br \/>\nkeystore.password <span class=\"token operator\">&#061;<\/span><\/p>\n<p><span class=\"token comment\"># When the WebSocket\/Json charge point opens more than one WebSocket connection,<\/span><br \/>\n<span class=\"token comment\"># we need a mechanism\/strategy to select one of them for outgoing requests.<\/span><br \/>\n<span class=\"token comment\"># For allowed values see de.rwth.idsg.steve.ocpp.ws.custom.WsSessionSelectStrategyEnum.<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nws.session.select.strategy <span class=\"token operator\">&#061;<\/span> ALWAYS_LAST<\/p>\n<p><span class=\"token comment\"># if BootNotification messages arrive (SOAP) or WebSocket connection attempts are made (JSON) from unknown charging<\/span><br \/>\n<span class=\"token comment\"># stations, we reject these charging stations, because stations with these chargeBoxIds were NOT inserted into database<\/span><br \/>\n<span class=\"token comment\"># beforehand. by setting this property to true, this behaviour can be modified to automatically insert unknown<\/span><br \/>\n<span class=\"token comment\"># stations into database and accept their requests.<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\n<span class=\"token comment\"># CAUTION: setting this property to true is very dangerous, because we will accept EVERY BootNotification or WebSocket<\/span><br \/>\n<span class=\"token comment\"># connection attempt from ANY sender as long as the sender knows the URL and sends a valid message.<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nauto.register.unknown.stations <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">false<\/span><\/p>\n<p><span class=\"token comment\"># if this field is set, it will take precedence over the default regex we are using in<\/span><br \/>\n<span class=\"token comment\"># de.rwth.idsg.steve.web.validation.ChargeBoxIdValidator.REGEX to validate the format of the chargeBoxId values<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\ncharge-box-id.validation.regex <span class=\"token operator\">&#061;<\/span><\/p>\n<p><span class=\"token comment\">### DO NOT MODIFY ###<\/span><br \/>\nsteve.version <span class=\"token operator\">&#061;<\/span> <span class=\"token variable\">${project.version}<\/span><br \/>\ngit.describe <span class=\"token operator\">&#061;<\/span> <span class=\"token variable\">${git.commit.id.describe}<\/span><br \/>\ndb.sql.logging <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">false<\/span><br \/>\nprofile <span class=\"token operator\">&#061;<\/span> prod<\/p>\n<p>\u5b89\u88c5Maven\u5de5\u5177&#xff0c;\u8fd9\u4e2a\u662f\u7f16\u8bd1\u8fd9\u4e2a\u9879\u76ee\u5fc5\u4e0d\u53ef\u5c11\u7684\u5de5\u5177&#xff0c;<\/p>\n<p><span class=\"token function\">wget<\/span> http:\/\/repos.fedorapeople.org\/repos\/dchen\/apache-maven\/epel-apache-maven.repo <span class=\"token parameter variable\">-O<\/span> \/etc\/yum.repos.d\/epel-apache-maven.repo<\/p>\n<p>yum <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> apache-maven<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;iZj6cagyhi0qjy83boeqcyZ ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mvn -version<\/span><br \/>\nApache Maven <span class=\"token number\">3.0<\/span>.5 <span class=\"token punctuation\">(<\/span>Red Hat <span class=\"token number\">3.0<\/span>.5-17<span class=\"token punctuation\">)<\/span><br \/>\nMaven home: \/usr\/share\/maven<br \/>\nJava version: <span class=\"token number\">17.0<\/span>.13, vendor: Eclipse Adoptium<br \/>\nJava home: \/usr\/lib\/jvm\/temurin-17-jdk<br \/>\nDefault locale: en_US, platform encoding: UTF-8<br \/>\nOS name: <span class=\"token string\">&#034;linux&#034;<\/span>, version: <span class=\"token string\">&#034;3.10.0-1160.114.2.el7.x86_64&#034;<\/span>, arch: <span class=\"token string\">&#034;amd64&#034;<\/span>, family: <span class=\"token string\">&#034;unix&#034;<\/span><\/p>\n<p>\u7f16\u8bd1\u4ee3\u7801&#xff0c;\u751f\u6210Java\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>.\/mvnw package<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121316-680241dca0487.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6267\u884c\u5e76\u6d4b\u8bd5<\/p>\n<p>\/usr\/bin\/java <span class=\"token parameter variable\">-jar<\/span> \/home\/steve3.7.1\/target\/steve.jar<\/p>\n<p>\u6253\u5f00\u7f51\u9875 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121317-680241dd05d5c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u80fd\u6253\u5f00\u57fa\u672c\u5c31\u6210\u529f\u4e86&#xff0c;\u767b\u9646\u7528\u6237\u540d\u548c\u5bc6\u7801\u662fsrc\\\\main\\\\resources\\\\config\\\\prod\\\\main.properties\u91cc\u9762\u7684 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121317-680241dd51726.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token comment\"># Credentials for Web interface access<\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\nauth.user <span class=\"token operator\">&#061;<\/span> admin<br \/>\nauth.password <span class=\"token operator\">&#061;<\/span> \u5199\u4e0a\u4f60\u7684\u5bc6\u7801<\/p>\n<p>\u624b\u5de5\u6267\u884c\u901a\u8fc7\u540e&#xff0c;\u53ef\u4ee5\u5236\u4f5c\u81ea\u542f\u52a8Steve\u670d\u52a1\u5668<\/p>\n<p><span class=\"token function\">vi<\/span> \/etc\/systemd\/system\/steve.service<\/p>\n<p><span class=\"token punctuation\">[<\/span>Unit<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">Description<\/span><span class=\"token operator\">&#061;<\/span>Steve Java Application<\/p>\n<p><span class=\"token punctuation\">[<\/span>Service<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">User<\/span><span class=\"token operator\">&#061;<\/span>root<span class=\"token comment\"># \u66ff\u6362\u4e3a\u5b9e\u9645\u8fd0\u884c\u8be5\u670d\u52a1\u7684\u7cfb\u7edf\u7528\u6237\u540d<\/span><br \/>\n<span class=\"token assign-left variable\">ExecStart<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/bin\/java <span class=\"token parameter variable\">-jar<\/span> \/home\/steve3.7.1\/target\/steve.jar<br \/>\n<span class=\"token assign-left variable\">WorkingDirectory<\/span><span class=\"token operator\">&#061;<\/span>\/home\/steve3.7.1\/target <span class=\"token comment\"># \u786e\u4fdd\u8fd9\u662fjar\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55<\/span><br \/>\n<span class=\"token assign-left variable\">SuccessExitStatus<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">143<\/span> <span class=\"token comment\"># java\u8fdb\u7a0b\u9000\u51fa\u7801\u4e3a143\u8868\u793a\u6b63\u5e38\u9000\u51fa<\/span><br \/>\n<span class=\"token assign-left variable\">TimeoutStopSec<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><br \/>\n<span class=\"token assign-left variable\">Restart<\/span><span class=\"token operator\">&#061;<\/span>on-failure <span class=\"token comment\"># \u670d\u52a1\u5931\u8d25\u65f6\u8fdb\u884c\u91cd\u542f<\/span><br \/>\n<span class=\"token assign-left variable\">RestartSec<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">5<\/span> <span class=\"token comment\"># \u91cd\u542f\u95f4\u9694\u65f6\u95f4<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>Install<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">WantedBy<\/span><span class=\"token operator\">&#061;<\/span>multi-user.target<\/p>\n<p>systemctl daemon-reload<br \/>\nsystemctl <span class=\"token builtin class-name\">enable<\/span> steve.service<br \/>\nsystemctl start steve.service<br \/>\nsystemctl status steve.service<\/p>\n<p>\/\/\u91cd\u542f\u670d\u52a1&#xff0c;\u7528\u6237\u4fee\u6539\u4e86\u670d\u52a1\u6e90\u7801&#xff0c;\u91cd\u542f\u670d\u52a1\u751f\u6548\u3002<\/p>\n<p>systemctl restart steve.service<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.7k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf20\u6b21\u3002SteVe\u5e73\u53f0\uff0cOCPP\u6d4b\u8bd5_steve ocpp<\/p>\n","protected":false},"author":2,"featured_media":13107,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[761,759,43,760],"topic":[],"class_list":["post-13114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ocpp","tag-759","tag-43","tag-760"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\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\/13114.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.7k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf20\u6b21\u3002SteVe\u5e73\u53f0\uff0cOCPP\u6d4b\u8bd5_steve ocpp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/13114.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-18T12:13:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121314-680241dab8e6c.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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/13114.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/13114.html\",\"name\":\"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T12:13:18+00:00\",\"dateModified\":\"2025-04-18T12:13:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/13114.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/13114.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/13114.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\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":"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\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\/13114.html","og_locale":"zh_CN","og_type":"article","og_title":"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.7k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf20\u6b21\u3002SteVe\u5e73\u53f0\uff0cOCPP\u6d4b\u8bd5_steve ocpp","og_url":"https:\/\/www.wsisp.com\/helps\/13114.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T12:13:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121314-680241dab8e6c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/13114.html","url":"https:\/\/www.wsisp.com\/helps\/13114.html","name":"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T12:13:18+00:00","dateModified":"2025-04-18T12:13:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/13114.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/13114.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/13114.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"(OCPP\u670d\u52a1\u5668)SteVe\u7f16\u8bd1\u642d\u5efa\u5168\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\/13114","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=13114"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/13114\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/13107"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=13114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=13114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=13114"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=13114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}