Home >Backend Development >PHP Tutorial >Installation and testing of nodejs environment on mac
A summary
Everyone who has worked as a web server before knows that both nginx+lua and the popular node.js can be used as web servers. The former is more troublesome than the latter in terms of program writing and configuration, but They are all similar in use. Here I suggest that if you don’t know the Lua scripting language, you can learn more about this scripting language. It is known as the scripting language with the highest execution efficiency among all scripting languages. The bottom layer is based on C language, which is very Easy to use, cross-platform!
Next, I will configure the node.js environment for you.
Second configuration of mac node.js environment
ruby -e “$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install);
brew install node
node -v
The above three steps node is successfully installed
Three program test
End of three
Isn’t it very simple? If you have done web service interface development before, this should be familiar, and it is even very simple.
').addClass('pre -numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces the installation and testing of the nodejs environment on mac, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.