The output for your ethernet adaptor will be under eth0, and with its local IP address labeled inet addr. If you didn’t have to figure out the local IP of your Raspberry Pi in the previous step, it’s time to find out by running ifconfig. Once installation is completed, start the server by running: sudo service nginx start Then you can install Nginx using apt-get: sudo apt-get install nginx Other web servers, such as Apache or lighttpd, would work as well, but we’ll use Nginx for this demonstration.īefore you start installing anything, you need to be sure everything is up-to-date by running these commands on the Pi: sudo apt-get update I prefer Nginx because it has a small memory footprint, and because it plays well with Node.js (which you’ll be setting up later). Install a Web Server (Nginx) on Your Raspberry Pi You can configure all the options but the most important are the first two: to expand the filesystem, ensuring that all the SD card storage is available for the OS, and to change the password for the default Pi user, so that your server will be protected from intruders. Raspi-config will walk you through the final setup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |