CentOS 7 啓動一個簡單的 Nodejs 服務

1. 安裝 nodejs $ curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - $ sudo yum -y install nodejs 2. 開啓一個 http server 新建一個文件 index.jsnode var http = require('http'); var ip = "xx
相關文章
相關標籤/搜索