Installing Node.js on the AC86U router
Node.js is a JavaScript running environment based on the Chrome V8 engine. It can run JavaScript code on the server side, allowing us to develop back-end applications in JavaScript language program. In many application scenarios, installing Node.js on the router is very useful, such as custom blogs, automated scripts, etc.
In this article, we will introduce how to install Node.js on AC86U router.
Preparation
Before starting the installation, you need to prepare the following tools and files:
Install Node .js
wget https://nodejs.org/dist/v14.16.0/node-v14.16.0-linux-armv7l.tar.xz
Please note that here we download the latest stable version, you can also download it as needed Download other versions from the Node.js official website.
tar -xf node-v14.16.0-linux-armv7l.tar.xz
cd node-v14.16.0-linux-armv7l
pwd
This will output the path of the binary file you just unzipped, which we can then use in the configuration file this path.
cd /etc/storage
vi dnsmasq.postconf
# Add Node.js to the PATH export PATH=/etc/storage/node-v14.16.0-linux-armv7l/bin:$PATH
service restart_dnsmasq
Congratulations, you have successfully installed Node.js on the AC86U router!
Summary
If you need to run JavaScript scripts or backend applications on the router, it is valuable to install Node.js. In this article, we explain how to install the latest version of Node.js on your AC86U router. Connect to the router terminal through PuTTY, download the file, unzip it, edit the configuration file and restart dnsmasq, and you can successfully install Node.js on the router. Hope this article helps you achieve your goals!
The above is the detailed content of ac86u install nodejs. For more information, please follow other related articles on the PHP Chinese website!