{"id":256626,"date":"2025-09-14T02:17:54","date_gmt":"2025-09-13T18:17:54","guid":{"rendered":"https:\/\/blog.zhenglei.net\/?p=256626"},"modified":"2025-09-14T05:53:54","modified_gmt":"2025-09-13T21:53:54","slug":"install-music-tag-web-on-debian-system","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=256626","title":{"rendered":"Install music-tag-web on debian system"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remote debian system<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh remote.zhenglei.net\nsudo su\ndocker pull xhongc\/music_tag_web:latest\ndocker images\ndocker save -o music_tag_web.tar  xhongc\/music_tag_web:latest\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Local debian system<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh local.zhenglei.net\nscp remote.zhenglei.net:\/${YOUR_PATH}\/remote.zhenglei.net .\nsudo su\ndocker load &lt; music_tag_web.tar\ndocker image ls<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Launch<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\n.\/music_tag_web.sh\n\ncat music_tag_web.sh\n\n<em>#!\/bin\/bash\nPORT=8001:8001\nDATA=\/Music\nCFG=\/docker\/music\/config\n\nMTAG=xhongc\/music_tag_web:latest\n\nif &#91; ! -d ${CFG} ];then\n  mkdir -p ${CFG}\nfi\n\nif &#91; ! -d ${DATA} ];then\n  mkdir -p ${DATA}\nfi\n\ndocker run -d -p ${PORT} -v ${DATA}:\/app\/media -v ${CFG}:\/app\/data --restart=always ${MTAG}<\/em>\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Verify<\/h2>\n\n\n\n<p>http:\/\/yor_ip:8001<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>default login:  admin:admin<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stop<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\ndocker stats\ndocker stop  $(docker ps -q)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install ffmpeg<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get instgall ffmpeg\nwhich ffmpeg\n# cd ${CFG}\/bin\ncd \/docker\/music\/config\/bin\nsudo ln \/usr\/bin\/ffmpeg<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Remote debian system Local debian system &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=256626\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[149,431,73,432],"class_list":["post-256626","post","type-post","status-publish","format-standard","hentry","category-linux","tag-debian","tag-docker","tag-linux-2","tag-music-tag-web"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256626"}],"version-history":[{"count":11,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256626\/revisions"}],"predecessor-version":[{"id":256636,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256626\/revisions\/256636"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}