1
我已经安装了强在下午的AWS Linux实例:强时HTTP认证401
[[email protected]]# npm -g install strongloop strong-pm
[[email protected]]# sl-pm-install --http-auth user:pass --force --upstart 0.6 --set-env NODE_ENV=production
[[email protected]]# /sbin/initctl reload-configuration
[[email protected]]# /sbin/initctl restart strong-pm
strong-pm start/running, process 18171
当我尝试检查强时的状态,我得到一个401
[[email protected]]# slc ctl -C http://user:[email protected]:8701
(node:18234) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:18234) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Command "status" on "http://user:[email protected]:8701" failed with Error: Error: 401
想法?我用不同的用户/传球组合重新安装了几次(没有特殊字符,文档中的“admin:foobar”示例等),没有任何效果。
你可能不得不做'stop','reload-configuration',然后'start'而不是'restsart'。在处理strong-pm服务安装程序时,我发现Upstart(特别是0.6)在处理不断变化的服务配置时非常挑剔。 –