我试图在运行ubuntu14.04和Apache2.4.7的aws服务器上运行一个基本的node.js文件
var http = require('http');
var hostname = '33.33.33.33';
var port = 3000;
var server = http.createServer(function(req, res) {
console.log(req.headers);
res.writeHead(200, { 'Content-Type': 'text/html' }
我使用以下代码将文件上载到服务器。它在本地主机和bluehost中运行得很好。但它并不适用于像(去爸爸)这样的主机。有人能解释一下为什么吗??
data = IOUtils.toByteArray(inputStream);
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(upload_url);
InputStreamBody inputStreamBody = new InputStreamBody(new ByteArrayInputStream(d