对于普通用户来说,开箱即用的设置工作正常(这意味着该网站出现在http://myserver.com:4040)。 从ps aux
java -Xmx100m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar
但只提供一个 https 端口
java -Xmx100m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=6060 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar
HTTP ERROR: 404
NOT_FOUND
RequestURI=/index.view
Powered by jetty://
Unable to connect
我只需要做以下事情就可以做出改变
# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=120"
SUBSONIC_ARGS="--max-memory=100 --https-port=6060"
并/etc/default/subsonic
发布
sudo service subsonic restart
(这是 Ubuntu Oneiric)