{"id":31911,"date":"2025-04-22T12:05:58","date_gmt":"2025-04-22T04:05:58","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/31911.html"},"modified":"2025-04-22T12:05:58","modified_gmt":"2025-04-22T04:05:58","slug":"aarch64%e6%9c%8d%e5%8a%a1%e5%99%a8-redis-nginx-mysql-minio-ffmpeg-libreoffice-%e5%ae%89%e8%a3%85%e6%8c%87%e5%8d%97%ef%bc%88aarch64-%e6%9e%b6%e6%9e%84%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/31911.html","title":{"rendered":"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09"},"content":{"rendered":"<\/p>\n<h3>\u4e00\u3001Redis \u5b89\u88c5\u914d\u7f6e<\/h3>\n<h4>1. \u4e0b\u8f7d\u5e76\u89e3\u538b Redis \u6e90\u7801<\/h4>\n<p>cd \/data<br \/>\nwget http:\/\/download.redis.io\/releases\/redis-5.0.8.tar.gz<br \/>\n# \u6216\u4e0a\u4f20 redis-5.0.8.tar.gz \u5230\u670d\u52a1\u5668<br \/>\ntar -zxvf redis-5.0.8.tar.gz<br \/>\ncd redis-5.0.8 <\/p>\n<h4>2. \u5b89\u88c5\u7f16\u8bd1\u4f9d\u8d56&#xff08;\u5982\u672a\u5b89\u88c5&#xff09;<\/h4>\n<p>sudo yum install -y gcc jemalloc-devel <\/p>\n<h4>3. \u7f16\u8bd1\u5e76\u5b89\u88c5 Redis<\/h4>\n<p>make<br \/>\nmake test \u00a0 \u00a0# \u53ef\u9009&#xff0c;\u8fdb\u884c\u6d4b\u8bd5<br \/>\nsudo make install <\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\u9ed8\u8ba4\u5c06\u53ef\u6267\u884c\u6587\u4ef6\u653e\u5728 \/usr\/local\/bin \u76ee\u5f55\u4e0b<\/p>\n<h4>4. \u914d\u7f6e Redis<\/h4>\n<p>\u6211\u4eec\u4f7f\u7528 \/data\/redis\/redis-5.0.8\/redis.conf \u4f5c\u4e3a\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u7f16\u8f91 \/data\/redis\/redis-5.0.8\/redis.conf&#xff0c;\u4fee\u6539\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>bind 0.0.0.0<br \/>\nprotected-mode yes<br \/>\nrequirepass \u767b\u5f55\u5bc6\u7801<br \/>\ndaemonize yes<br \/>\npidfile \/var\/run\/redis_6379.pid<br \/>\nlogfile \/var\/log\/redis_6379.log<br \/>\ndir \/var\/lib\/redis <\/p>\n<h4>5. \u521b\u5efa systemd \u670d\u52a1\u914d\u7f6e<\/h4>\n<p>\u7f16\u8f91\u6587\u4ef6&#xff1a;\/etc\/systemd\/system\/redis.service<\/p>\n<p>[Unit]<br \/>\nDescription&#061;Redis<br \/>\nAfter&#061;network.target<br \/>\n\u200b<br \/>\n[Service]<br \/>\nType&#061;forking<br \/>\nExecStart&#061;\/usr\/local\/bin\/redis-server \/data\/redis\/redis-5.0.8\/redis.conf<br \/>\nExecStop&#061;\/usr\/local\/bin\/redis-cli -a \u767b\u5f55\u5bc6\u7801 shutdown<br \/>\nUser&#061;root<br \/>\nGroup&#061;root<br \/>\nPrivateTmp&#061;true<br \/>\n\u200b<br \/>\n[Install]<br \/>\nWantedBy&#061;multi-user.target <\/p>\n<p>\u8bbe\u7f6e\u6743\u9650\u5e76\u542f\u52a8&#xff1a;<\/p>\n<p>sudo chmod 755 \/etc\/systemd\/system\/redis.service<br \/>\nsudo systemctl daemon-reload<br \/>\nsudo systemctl start redis<br \/>\nsudo systemctl enable redis <\/p>\n<h4>6. \u5f00\u653e\u9632\u706b\u5899\u7aef\u53e3<\/h4>\n<p>sudo firewall-cmd &#8211;zone&#061;public &#8211;add-port&#061;6379\/tcp &#8211;permanent<br \/>\nsudo firewall-cmd &#8211;reload <\/p>\n<h3>\u4e8c\u3001Nginx \u5b89\u88c5\u914d\u7f6e<\/h3>\n<h4>1. \u4e0b\u8f7d\u5e76\u89e3\u538b Nginx \u6e90\u7801<\/h4>\n<p>cd \/data<br \/>\nwget http:\/\/nginx.org\/download\/nginx-1.26.3.tar.gz<br \/>\n# \u6216\u4e0a\u4f20 nginx-1.26.3.tar.gz \u5230\u670d\u52a1\u5668<br \/>\n\u200b<br \/>\ntar -zxvf nginx-1.26.3.tar.gz<br \/>\ncd nginx-1.26.3 <\/p>\n<h4>2. \u5b89\u88c5 Nginx \u7f16\u8bd1\u6240\u9700\u7684\u4f9d\u8d56<\/h4>\n<p>\u5982\u679c\u4f9d\u8d56\u6ca1\u6709\u5b89\u88c5&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u5b83\u4eec&#xff1a;<\/p>\n<p>sudo yum install -y gcc pcre-devel openssl-devel <\/p>\n<p>\u8fd9\u4e9b\u662f\u7f16\u8bd1 Nginx \u6240\u9700\u7684\u57fa\u672c\u4f9d\u8d56&#xff1a;<\/p>\n<ul>\n<li>\n<p>gcc&#xff1a;GNU \u7f16\u8bd1\u5668\u5957\u4ef6&#xff0c;\u7528\u4e8e\u7f16\u8bd1\u6e90\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>pcre-devel&#xff1a;\u6b63\u5219\u8868\u8fbe\u5f0f\u5e93&#xff0c;Nginx \u4f7f\u7528\u5b83\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u76f8\u5173\u529f\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p>openssl-devel&#xff1a;OpenSSL \u5f00\u53d1\u5e93&#xff0c;Nginx \u7528\u4e8e\u652f\u6301 SSL\/TLS \u529f\u80fd\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3. \u786e\u8ba4\u4f9d\u8d56\u5b89\u88c5<\/h4>\n<p>gcc &#8211;version<br \/>\npcre-config &#8211;version<br \/>\nopenssl version <\/p>\n<h4>4. \u914d\u7f6e\u7f16\u8bd1\u53c2\u6570\u5e76\u5b89\u88c5<\/h4>\n<p>.\/configure &#8211;prefix&#061;\/data\/nginx \\\\<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8211;with-http_ssl_module \\\\<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8211;with-http_v2_module \\\\<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8211;with-http_gzip_static_module \\\\<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8211;with-pcre<br \/>\n\u200b<br \/>\nmake<br \/>\nmake install <\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e Nginx \u8def\u5f84\u4e3a \/data\/nginx<\/p>\n<h4>5. \u521b\u5efa systemd \u670d\u52a1\u914d\u7f6e<\/h4>\n<p>\u7f16\u8f91\u6587\u4ef6&#xff1a;\/etc\/systemd\/system\/nginx.service<\/p>\n<p>[Unit]<br \/>\nDescription&#061;NGINX<br \/>\nAfter&#061;network.target<br \/>\n\u200b<br \/>\n[Service]<br \/>\nExecStart&#061;\/data\/nginx\/sbin\/nginx<br \/>\nExecReload&#061;\/data\/nginx\/sbin\/nginx -s reload<br \/>\nExecStop&#061;\/data\/nginx\/sbin\/nginx -s stop<br \/>\nPIDFile&#061;\/data\/nginx\/logs\/nginx.pid<br \/>\nUser&#061;root<br \/>\nGroup&#061;root<br \/>\nPrivateTmp&#061;true<br \/>\n\u200b<br \/>\n[Install]<br \/>\nWantedBy&#061;multi-user.target <\/p>\n<p>\u8bbe\u7f6e\u6743\u9650\u5e76\u542f\u52a8&#xff1a;<\/p>\n<p>sudo chmod 755 \/etc\/systemd\/system\/nginx.service<br \/>\nsudo systemctl daemon-reload<br \/>\nsudo systemctl start nginx<br \/>\nsudo systemctl enable nginx <\/p>\n<h4>6. Nginx \u914d\u7f6e\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4<\/h4>\n<p>cd \/data\/nginx\/sbin<br \/>\n.\/nginx -t \u00a0 \u00a0 \u00a0 \u00a0 # \u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u6b63\u786e<br \/>\n.\/nginx -s reload \u00a0# \u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6 <\/p>\n<h3>\u4e09\u3001MySQL \u5b89\u88c5\u914d\u7f6e&#xff08;8.0.41 aarch64&#xff09;<\/h3>\n<h4>1. \u89e3\u538b MySQL \u5b89\u88c5\u5305<\/h4>\n<p>cd \/data\/mysql<br \/>\ntar -xJvf mysql-8.0.41-linux-glibc2.28-aarch64.tar.xz <\/p>\n<h4>2. \u521b\u5efa\u6570\u636e\u76ee\u5f55<\/h4>\n<p>mkdir -p \/data\/mysql\/data <\/p>\n<h4>3. \u914d\u7f6e my.cnf \u6587\u4ef6<\/h4>\n<p>my.cnf \u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e \/etc\/my.cnf \u6216 \/etc\/mysql\/my.cnf&#xff0c;\u786e\u4fdd\u5b83\u5305\u542b\u4ee5\u4e0b\u914d\u7f6e&#xff1a;<\/p>\n<p># \u4f18\u5148\u8bfb\u53d6\/etc\/my.cnf.d\u76ee\u5f55\u4e0b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u4e00\u822c\u7528\u4e0d\u7740<br \/>\n# #!includedir \/etc\/my.cnf.d<br \/>\n#<br \/>\n# # \u670d\u52a1\u7aef\u8bbe\u7f6e<br \/>\n[mysqld]<br \/>\n# # \u670d\u52a1\u5957\u63a5\u5b57\u4f4d\u7f6e<br \/>\nsocket &#061; \/data\/mysql\/mysql.sock<br \/>\n#<br \/>\n# # \u6570\u636e\u76ee\u5f55&#xff0c;\u8def\u5f84\u7684\u4f4d\u7f6e\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u914d\u7f6e<br \/>\nbasedir &#061; \/data\/mysql\/mysql-8.0.41-linux-glibc2.28-aarch64  # MySQL\u6839\u76ee\u5f55<br \/>\ndatadir &#061; \/data\/mysql\/data\/  # MySQL\u7684data\u76ee\u5f55<br \/>\n#<br \/>\n# # mysql\u7aef\u53e3\u53f7<br \/>\nport &#061; 3306<br \/>\nbind-address &#061; 0.0.0.0  # \u6216\u8005 127.0.0.1<br \/>\n#<br \/>\n# # \u65e5\u5fd7\u6587\u4ef6\u8f93\u51fa<br \/>\nlog-error &#061; \/data\/mysql\/data\/mysql.log<br \/>\n#<br \/>\n# # \u4e0d\u533a\u5206\u5927\u5c0f\u5199<br \/>\nlower_case_table_names &#061; 1<br \/>\n#<br \/>\n# # \u6700\u5927\u4f20\u8f93\u6570\u636e\u5305<br \/>\nmax_allowed_packet &#061; 128M<br \/>\n#<br \/>\n# # \u6700\u5927\u8fde\u63a5\u5e76\u53d1\u6570\u636e\u91cf<br \/>\nmax_connections &#061; 2000<br \/>\n#<br \/>\n# # \u8bbe\u7f6e\u5b57\u7b26\u96c6<br \/>\ncharacter-set-server &#061; utf8mb4<br \/>\ncollation-server &#061; utf8mb4_general_ci<br \/>\n#<br \/>\n# # \u5ba2\u6237\u7aef\u8bbe\u7f6e<br \/>\n[client]<br \/>\n# # \u5ba2\u6237\u7aef\u8fde\u63a5\u4f7f\u7528\u7684socket<br \/>\nsocket &#061; \/data\/mysql\/mysql.sock <\/p>\n<h4>4. \u521d\u59cb\u5316 MySQL \u6570\u636e\u76ee\u5f55&#xff0c;\u521d\u59cb\u5316\u5b8c\u6210\u4f1a\u6709\u4e00\u4e2a\u4e34\u65f6\u5bc6\u7801&#xff0c;\u9700\u8981\u8bb0\u4e00\u4e0b<\/h4>\n<p>cd \/data\/mysql\/mysql-8.0.41-linux-glibc2.28-aarch64<\/p>\n<p>.\/bin\/mysqld &#8211;initialize-insecure &#8211;user&#061;root &#8211;basedir&#061;\/data\/mysql\/mysql-8.0.41-linux-glibc2.28-aarch64 &#8211;datadir&#061;\/data\/mysql\/data <\/p>\n<p>\u5982\u679c\u6ca1\u6709\u8bb0\u5f55\u4e34\u65f6\u5bc6\u7801&#xff0c;\u5bc6\u7801\u4f1a\u663e\u793a\u5728\u521d\u59cb\u5316\u8f93\u51fa\u65e5\u5fd7\u4e2d&#xff08;\u901a\u5e38\u662f mysqld.log \u6587\u4ef6&#xff09;\u5927\u81f4\u76ee\u5f55\u662f \/data\/mysql\/data\/mysql.log \u5185\u5bb9&#xff1a;A temporary password is generated for root&#064;localhost: &lt;\u4e34\u65f6\u5bc6\u7801&gt;<\/p>\n<h4>5. \u521b\u5efa systemd \u670d\u52a1\u914d\u7f6e<\/h4>\n<p>\u7f16\u8f91\u6587\u4ef6&#xff1a;\/etc\/systemd\/system\/mysql.service<\/p>\n<p>[Unit]<br \/>\nDescription&#061;MySQL Community Server<br \/>\nDocumentation&#061;man:mysqld(8)<br \/>\nAfter&#061;network.target<br \/>\n\u200b<br \/>\n[Service]<br \/>\nExecStart&#061;\/data\/mysql\/mysql-8.0.41-linux-glibc2.28-aarch64\/bin\/mysqld &#8211;defaults-file&#061;\/etc\/my.cnf &#8211;user&#061;root<br \/>\nExecStop&#061;\/data\/mysql\/mysql-8.0.41-linux-glibc2.28-aarch64\/bin\/mysqladmin shutdown &#8211;defaults-file&#061;\/etc\/my.cnf<br \/>\nLimitNOFILE&#061;65535<br \/>\nRestart&#061;on-failure<br \/>\nUser&#061;root<br \/>\n\u200b<br \/>\n[Install]<br \/>\nWantedBy&#061;multi-user.target <\/p>\n<p>\u8bbe\u7f6e\u6743\u9650\u5e76\u542f\u52a8&#xff1a;<\/p>\n<p>sudo chmod 755 \/etc\/systemd\/system\/mysql.service<br \/>\nsudo systemctl daemon-reload<br \/>\nsudo systemctl start mysql<br \/>\nsudo systemctl enable mysql <\/p>\n<p>\u521b\u5efaMysql\u7528\u6237\u5e76\u5f00\u542f\u8fdc\u7a0b\u8bbf\u95ee&#xff1a;<\/p>\n<p>&#8212; \u767b\u5f55Mysql&#xff0c;\u5bc6\u7801\u662f\u521d\u59cb\u5316\u7684\u65f6\u5019\u751f\u6210\u7684\u4e34\u65f6\u5bc6\u7801<br \/>\nmysql -u root -p<br \/>\n\u200b<br \/>\n&#8212; \u521b\u5efaroot\u7528\u6237&#xff0c;\u652f\u6301\u8fdc\u7a0b\u8bbf\u95ee<br \/>\nCREATE USER &#039;root&#039;&#064;&#039;%&#039; IDENTIFIED BY &#039;\u4f60\u7684\u5bc6\u7801&#039;;<br \/>\nGRANT ALL PRIVILEGES ON *.* TO &#039;root&#039;&#064;&#039;%&#039; WITH GRANT OPTION;<br \/>\n\u200b<br \/>\n&#8212; \u5237\u65b0\u6743\u9650<br \/>\nFLUSH PRIVILEGES; <\/p>\n<h3>\u56db\u3001MinIO \u5b89\u88c5\u914d\u7f6e<\/h3>\n<h4>1. \u4e0b\u8f7d\u5e76\u5b89\u88c5 MinIO<\/h4>\n<p>wget https:\/\/dl.min.io\/server\/minio\/release\/linux-arm64\/minio <\/p>\n<h4>2. \u521b\u5efa\u76ee\u5f55<\/h4>\n<p># \u542f\u52a8\u76ee\u5f55<br \/>\nmkdir -p \/data\/minio\/bin<br \/>\n\u200b<br \/>\n# \u914d\u7f6e\u76ee\u5f55<br \/>\nmkdir -p \/data\/minio\/etc<br \/>\n\u200b<br \/>\n# \u6570\u636e\u76ee\u5f55<br \/>\nmkdir -p \/data\/minio\/data <\/p>\n<h4>3. \u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650<\/h4>\n<p>\u5c06\u4e0a\u4f20\u7684 MinIO \u4e8c\u8fdb\u5236\u5305\u653e\u5230 \/usr\/local\/minio\/bin \u4e0b&#xff0c;\u5e76\u8d4b\u4e88\u6267\u884c\u6743\u9650&#xff1a;<\/p>\n<p>chmod u&#043;x \/data\/minio\/bin\/minio <\/p>\n<p>\u9a8c\u8bc1\u4e8c\u8fdb\u5236\u5305\u662f\u5426\u53ef\u7528&#xff1a;<\/p>\n<p>.\/data\/minio\/bin\/minio &#8211;version <\/p>\n<p>\u26a0\ufe0f \u82e5\u51fa\u73b0\u201c\u7a0b\u5e8f\u65e0\u6cd5\u6267\u884c\u201d\u6216\u201cminio\u4e0d\u662f\u53ef\u6267\u884c\u547d\u4ee4\u201d\u7684\u62a5\u9519&#xff0c;\u53ef\u80fd\u662f\u4e0b\u8f7d\u7248\u672c\u4e0d\u6b63\u786e&#xff0c;\u8bf7\u68c0\u67e5\u67b6\u6784\u548c\u7cfb\u7edf\u5bf9\u5e94\u5173\u7cfb\u3002<\/p>\n<h4>4. \u521b\u5efa MinIO \u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>vim \/data\/minio\/etc\/minio.conf <\/p>\n<p>\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>MINIO_VOLUMES&#061;&#034;\/data\/minio\/data&#034;<br \/>\nMINIO_OPTS&#061;&#034;-C \/data\/minio\/bin &#8211;address \u670d\u52a1\u5668IP:9000 &#8211;console-address \u670d\u52a1\u5668IP:9001&#034;<br \/>\nMINIO_ACCESS_KEY&#061;&#034;\u7528\u6237\u540d&#034;<br \/>\nMINIO_SECRET_KEY&#061;&#034;8\u4f4d\u5bc6\u7801&#034;  <\/p>\n<p>\u2705 \u6ce8\u610f\u4e8b\u9879&#xff1a;<\/p>\n<ul>\n<li>\n<p>&#8211;address \u540e\u586b\u5199\u4f60\u7684\u670d\u52a1\u5668 IP \u5730\u5740<\/p>\n<\/li>\n<li>\n<p>MINIO_ACCESS_KEY \u6700\u5c11 3 \u4e2a\u5b57\u7b26&#xff08;\u7528\u4e8e\u767b\u5f55&#xff09;<\/p>\n<\/li>\n<li>\n<p>MINIO_SECRET_KEY \u6700\u5c11 8 \u4e2a\u5b57\u7b26&#xff08;\u7528\u4e8e\u767b\u5f55&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u5982\u5df2\u542f\u52a8 MinIO \u670d\u52a1&#xff0c;\u5219\u9700\u8981\u91cd\u542f\u6216\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u540e\u751f\u6548\u3002<\/p>\n<h4>5. \u521b\u5efa systemd \u670d\u52a1\u6587\u4ef6<\/h4>\n<p>\u7f16\u8f91 \/etc\/systemd\/system\/minio.service<\/p>\n<p>[Unit]<br \/>\nDescription&#061;MinIO<br \/>\nDocumentation&#061;https:\/\/docs.min.io<br \/>\nWants&#061;network-online.target<br \/>\nAfter&#061;network-online.target<br \/>\nAssertFileIsExecutable&#061;\/data\/minio\/bin\/minio<br \/>\n\u200b<br \/>\n[Service]<br \/>\nEnvironmentFile&#061;\/data\/minio\/etc\/minio.conf<br \/>\nExecStart&#061;\/data\/minio\/bin\/minio server $MINIO_OPTS $MINIO_VOLUMES<br \/>\n# Let systemd restart this service always<br \/>\nRestart&#061;always<br \/>\n# Specifies the maximum file descriptor number that can be opened by this process<br \/>\nLimitNOFILE&#061;65536<br \/>\n# Disable timeout logic and wait until process is stopped<br \/>\nTimeoutStopSec&#061;infinity<br \/>\nSendSIGKILL&#061;no<br \/>\n\u200b<br \/>\n[Install]<br \/>\nWantedBy&#061;multi-user.target <\/p>\n<p>\u8bbe\u7f6e\u6743\u9650\u5e76\u542f\u52a8&#xff1a;<\/p>\n<p>sudo chmod 755 \/etc\/systemd\/system\/minio.service<br \/>\nsudo systemctl daemon-reload<br \/>\nsudo systemctl start minio<br \/>\nsudo systemctl enable minio <\/p>\n<h3>\u4e94\u3001FFmpeg \u5b89\u88c5\u914d\u7f6e<\/h3>\n<h4>\u51c6\u5907\u5de5\u4f5c<\/h4>\n<p>\u5728\u5b89\u88c5FFmpeg\u65f6&#xff0c;\u4f60\u9700\u8981\u5b89\u88c5GCC\u7f16\u8bd1\u5668\u3002GCC\u7528\u4e8e\u7f16\u8bd1\u89e3\u7801\u5668\u7684\u6e90\u7801&#xff0c;\u800cFFmpeg\u5219\u7528\u4e8e\u8f6c\u6362\u683c\u5f0f\u3002<\/p>\n<h4>1. GCC\u7f16\u8bd1\u5de5\u5177\u5b89\u88c5<\/h4>\n<p>GCC\u5b89\u88c5\u8bf7\u53c2\u8003\u4ee5\u4e0b\u6559\u7a0b&#xff1a;<\/p>\n<ul>\n<li>\n<p>Linux\u5b89\u88c5gcc\u7684\u56db\u79cd\u65b9\u6cd5_linuxgcc\u5b89\u88c5\u6559\u7a0b-CSDN\u535a\u5ba2<\/p>\n<\/li>\n<\/ul>\n<h4>2. Linux\u73af\u5883\u4e0bFFmpeg\u5b89\u88c5<\/h4>\n<h5>\u4e0b\u8f7d\u5e76\u89e3\u538bFFmpeg<\/h5>\n<p>\u4f60\u53ef\u4ee5\u9009\u62e9\u81ea\u5df1\u60f3\u8981\u5b89\u88c5\u7684\u76ee\u5f55&#xff0c;\u5e76\u4e0b\u8f7dFFmpeg\u7684\u5b89\u88c5\u5305\u3002<\/p>\n<p>cd \/data\/ffmpeg\/data<br \/>\nwget http:\/\/www.ffmpeg.org\/releases\/ffmpeg-5.1.tar.gz<br \/>\ntar -zxvf ffmpeg-5.1.tar.gz <\/p>\n<h5>\u8fdb\u5165\u89e3\u538b\u76ee\u5f55\u5e76\u6267\u884c\u5b89\u88c5\u547d\u4ee4<\/h5>\n<p>cd ffmpeg-5.1<br \/>\n.\/configure &#8211;prefix&#061;\/data\/ffmpeg<br \/>\nmake &amp;&amp; make install <\/p>\n<h5>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef<\/h5>\n<p>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef&#xff0c;\u8bf4\u660e\u9700\u8981\u5b89\u88c5 yasm\u3002<\/p>\n<p>ERROR: yasm is required to build FFmpeg<br \/>\n\u200b<br \/>\nyum install yasm -y <\/p>\n<h5>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h5>\n<p>\u7f16\u8f91\/etc\/profile\u6587\u4ef6&#xff0c;\u6dfb\u52a0FFmpeg\u7684\u8def\u5f84\u3002<\/p>\n<p>vim \/etc\/profile<br \/>\nexport PATH&#061;$PATH:\/data\/ffmpeg\/bin <\/p>\n<p>\u8bbe\u7f6e\u751f\u6548&#xff1a;<\/p>\n<p>source \/etc\/profile<\/p>\n<p>\u67e5\u770bFFmpeg\u7248\u672c <\/p>\n<p>\u5b89\u88c5\u6210\u529f\u540e&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770bFFmpeg\u7248\u672c&#xff1a;<\/p>\n<p>ffmpeg -version<\/p>\n<p>\u4f60\u5e94\u8be5\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u4fe1\u606f&#xff1a; <\/p>\n<p> ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers<br \/>\nbuilt with gcc 7.3.0 (GCC)<br \/>\nconfiguration: &#8211;prefix&#061;\/data\/ffmpeg <\/p>\n<p>\u5b89\u88c5\u6210\u529f&#xff01;<\/p>\n<h3>\u516d\u3001LibreOffice\u7684\u5b89\u88c5<\/h3>\n<h5>\u5b89\u88c5\u547d\u4ee4&#xff08;\u56e0\u4e3a\u6211\u7684\u670d\u52a1\u5668\u6709\u96c6\u6210\u955c\u50cf\u6e90&#xff0c;\u63a8\u8350\u4f7f\u7528\u7cfb\u7edf\u6e90\u5b89\u88c5&#xff09;<\/h5>\n<p># \u5b89\u88c5 LibreOffice<br \/>\nsudo yum install libreoffice -y <\/p>\n<h5>\u5b89\u88c5\u8def\u5f84\u8bf4\u660e<\/h5>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;LibreOffice \u9ed8\u8ba4\u8def\u5f84\u4e3a&#xff1a;<\/p>\n<p> \/usr\/lib64\/libreoffice <\/p>\n<p>\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u5b9e\u9645\u8def\u5f84&#xff1a;<\/p>\n<p>whereis soffice<br \/>\n# \u6216<br \/>\nwhich libreoffice <\/p>\n<p>\u8f93\u51fa\u793a\u4f8b&#xff1a;<\/p>\n<p> \/usr\/bin\/libreoffice <\/p>\n<p>\u8fd9\u662f\u542f\u52a8\u811a\u672c\u7684\u8f6f\u94fe\u63a5&#xff0c;\u5b9e\u9645\u7a0b\u5e8f\u901a\u5e38\u4f4d\u4e8e&#xff1a;<\/p>\n<p> \/usr\/lib64\/libreoffice <\/p>\n<p>\u4f60\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4\u786e\u8ba4\u76ee\u5f55\u662f\u5426\u5b58\u5728&#xff1a;<\/p>\n<p>ls \/usr\/lib64\/libreoffice <\/p>\n<p>\u542f\u52a8\u6d4b\u8bd5<\/p>\n<p>soffice &#8211;version <\/p>\n<h3>\u4e03\u3001\u5e38\u7528\u547d\u4ee4\u6c47\u603b<\/h3>\n<p># Redis \u76f8\u5173<br \/>\nsudo systemctl start redis<br \/>\nsudo systemctl stop redis<br \/>\nsudo systemctl restart redis<br \/>\nsudo systemctl enable redis<\/p>\n<p># Nginx \u76f8\u5173<br \/>\nsudo systemctl start nginx<br \/>\nsudo systemctl stop nginx<br \/>\nsudo systemctl restart nginx<br \/>\nsudo systemctl enable nginx<br \/>\n.\/data\/nginx\/sbin\/nginx -t \u00a0#\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u5f02\u5e38<br \/>\n.\/data\/nginx\/sbin\/nginx -s reload #\u914d\u7f6e\u6587\u4ef6\u91cd\u65b0\u751f\u6548<\/p>\n<p># MySQL \u76f8\u5173<br \/>\nsudo systemctl start mysqld<br \/>\nsudo systemctl stop mysqld<br \/>\nsudo systemctl restart mysqld<br \/>\nsudo systemctl enable mysqld<\/p>\n<p># MinIO \u76f8\u5173<br \/>\nsudo systemctl start minio<br \/>\nsudo systemctl stop minio<br \/>\nsudo systemctl restart minio<br \/>\nsudo systemctl enable minio <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb673\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u9002\u7528\u4e8e\u67b6\u6784\u4e3a aarch64\uff08\u5982\u534e\u4e3a\u9cb2\u9e4f\u670d\u52a1\u5668\uff09\u7684 CentOS \u7cfb\u7edf\u3002\u6b64\u6587\u6863\u6240\u6709\u7684wget\u94fe\u63a5\u5747\u662f\u5916\u7f51\u5730\u5740\uff0c\u5185\u7f51\u90e8\u7f72\u9700\u8981\u624b\u52a8\u53bb\u8fde\u63a5\u4e0b\u8f7d_arrch \u5b89\u88c5 redis<\/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":[213,99,43,188,2581],"topic":[],"class_list":["post-31911","post","type-post","status-publish","format-standard","hentry","category-server","tag-ffmpeg","tag-java","tag-43","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09 - \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\/31911.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb673\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u9002\u7528\u4e8e\u67b6\u6784\u4e3a aarch64\uff08\u5982\u534e\u4e3a\u9cb2\u9e4f\u670d\u52a1\u5668\uff09\u7684 CentOS \u7cfb\u7edf\u3002\u6b64\u6587\u6863\u6240\u6709\u7684wget\u94fe\u63a5\u5747\u662f\u5916\u7f51\u5730\u5740\uff0c\u5185\u7f51\u90e8\u7f72\u9700\u8981\u624b\u52a8\u53bb\u8fde\u63a5\u4e0b\u8f7d_arrch \u5b89\u88c5 redis\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/31911.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-22T04:05:58+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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31911.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/31911.html\",\"name\":\"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-22T04:05:58+00:00\",\"dateModified\":\"2025-04-22T04:05:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/31911.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/31911.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31911.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09\"}]},{\"@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":"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09 - \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\/31911.html","og_locale":"zh_CN","og_type":"article","og_title":"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb673\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u9002\u7528\u4e8e\u67b6\u6784\u4e3a aarch64\uff08\u5982\u534e\u4e3a\u9cb2\u9e4f\u670d\u52a1\u5668\uff09\u7684 CentOS \u7cfb\u7edf\u3002\u6b64\u6587\u6863\u6240\u6709\u7684wget\u94fe\u63a5\u5747\u662f\u5916\u7f51\u5730\u5740\uff0c\u5185\u7f51\u90e8\u7f72\u9700\u8981\u624b\u52a8\u53bb\u8fde\u63a5\u4e0b\u8f7d_arrch \u5b89\u88c5 redis","og_url":"https:\/\/www.wsisp.com\/helps\/31911.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-22T04:05:58+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/31911.html","url":"https:\/\/www.wsisp.com\/helps\/31911.html","name":"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-22T04:05:58+00:00","dateModified":"2025-04-22T04:05:58+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/31911.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/31911.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/31911.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"aarch64\u670d\u52a1\u5668 Redis + Nginx + MySQL + MinIO + FFmpeg + LibreOffice \u5b89\u88c5\u6307\u5357\uff08aarch64 \u67b6\u6784\uff09"}]},{"@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\/31911","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=31911"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31911\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=31911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=31911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=31911"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=31911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}