×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
My managers have given me the green light to explore node on the IBM i (7.1).
I'm following the IBM developerWorks getting started page at:
https://www.ibm.com/developerworks/ibmi/library/i-native-js-app-ibmi-with-nodejs/. The section of the page called "Create a web application using Node.js" has instructions for developing a hello world web server. I was able to get the hello world web server to run successfully:
* I created the sample.js file
* I put the sample.js file in the IFS
* I started a qshell session
* I executed the command "node /mydirectory/sample.js".
* I confirmed the web server was running by pointing my browser to the URL and seeing the hello world message.
Here's where I got a little confused. The developerWorks page says:
"To end the web server job, you can press the Esc key within the QSH session and select option 2 to work with the current jobs. Next, end the job running the node program with option 4 as shown in Figure 6."
While still in the qshell session, I pressed the escape key on my keyboard, but I did not get any options at all. I did not see a way to follow these instructions for ending the job. I used F3 to exit the qshell session. I pointed my browser to the URL, and it returned the standard browser message saying the page was not available.
If a node web server is started in a qshell session, is it okay to end the web server by simply stopping the qshell session?
Why did I not see any options when I pressed the escape key while in the qshell session?
Thanks,
Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx<mailto:kcookson@xxxxxxxxxxxx>
As an Amazon Associate we earn from qualifying purchases.