Last active
December 15, 2015 18:20
-
-
Save masarugen/5303543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var server = http.createServer(function (request, response) { | |
response.writeHead(200, {'Content-Type': 'text/plain'}); | |
response.end('Hello World\n'); | |
}); | |
server.listen(80, 'localhost', function() { | |
process.setuid(80); // ここで変更後のuidを指定する | |
process.setgid(80); // ここで変更後のgidを指定する | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment