私は端末でMac OS Xを使用しています:
$ sudo npm install node-siege
包囲をインストールします。また、node-siege フォルダーが作成され、フォルダーにインストールされていることがわかります。しかし、包囲で何かを実行すると、その-bash: siege.config: command not found
理由がよくわかりません。siege.config、または siege を使用する任意のコマンド。コマンドが見つかりませんでした。
編集 Siege を自分のフォルダーにインストールしたので、実行できます。
私はsiege.test.jsを持っています
var siege = require('../../siege')
// Assuming i supposed to change the script below to the directory path then + the file to run??
// For example var siege = require(Localhost/testfolder+'/testthisfile.js')
//siege(__dirname + '/app.js')
siege()
.host('localhost')
.on(3000)
.concurrent(30)
.for(10000).times
.get('/')
.post('/')
.attack()