Javascript 终端:%node example.js-bash:fg:没有这样的作业
在终端中,当我尝试运行%node example.js时,为什么会得到-bash:fg:%:没有这样的作业 我已经安装了Node.js。我用示例代码保存了example.js:Javascript 终端:%node example.js-bash:fg:没有这样的作业,javascript,node.js,bash,terminal,Javascript,Node.js,Bash,Terminal,在终端中,当我尝试运行%node example.js时,为什么会得到-bash:fg:%:没有这样的作业 我已经安装了Node.js。我用示例代码保存了example.js: var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
以下是登录页上的Web服务器示例。运行node example.js成功,但没有%
node example.js会导致:
正在运行的服务器http://127.0.0.1:1337/
%用于定义作业,它需要作业标识符编号、字符串等。
我还认为,在该网站上,他们使用%作为提示。
试试node example.js
-吉德尔
信用证:%经常用作提示,我在从mongolab运行mongo shell命令时遇到了类似的情况 在%之后运行该命令。%用于定义作业,它后面需要作业标识号、字符串等。我还认为,在该网站上,他们使用%作为提示。试试node example.js