小白centos - 1

1.觊觎服务器好久了 , 在情人节过后入手了腾讯云服务器 , 360元5年。

2.作为一个小白,迫不及待的装了Linux宝塔面板,突然WinSCP连接终端(此时命令已经运行了),所以直接重装系统,选了一个成品,然后 http://{your server ip}:8888 , success~

3.改个密码先 , $cd /www/server/panel  $python tools.pyc panel {your passwd}

4.装下我的三贱客

5.写个hello_world放进去,pm2 start,就可以看到啦

const fs = require('fs'), http = require('http');
const app_port = 10001, app = http.createServer(handler).listen(app_port);

function handler(req, res) {
    fs.readFile('./main.html', 'utf8', (err, data) => {
        res.end(err ? JSON.stringify(err) : data);
    });
}

6.绑定[映射]到域名,然后放行80端口,10001端口取消方向

#end

http://hello_world.nvcc.cc  success

猜你喜欢

转载自blog.csdn.net/qq_39571197/article/details/81813800