The web server has been started on port 3001. To add the repository for the latest version of Node.js, use the following command as root or non-root. ![]() node -inspect demo_server.jsĭebugger listening on ws://127.0.0.1:9229/9e0c7b4a-2ffe-48df-a4b0-b4635dcd9359 Installing NodeJS in RHEL, CentOS, Fedora, Rocky & Alma. Now start the web server using the command. Create a file demo_server.js sudo nano demo_server.jsĪnd add the following content var http = require('http') Let’s create a web server with the “Welcome Node.js” text. If you want to test your node.js install. Step 4 – Create Demo Web Server (Optional) You may try a demo HTTP server as given below. You have successfully installed Node.js on your CentOS 7 system. You can find more details about current version on node.js official website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |