You do not have to have Apache2 on the board if you do not want to. These
images are demo images, to show the capabilities of the hardware.

Nodejs is actually a better candidate for a "web server" versus Apache
since most traditional web servers run multilthreaded. Nodejs runs one
thread per process. Since the BBB is a single core processor, multithreaded
could cause performance hits due to context switching. But, do not take my
word on this matter, feel free to google, and find the same information I
did :)

Another upside to Nodejs, atleast in the context of the BBB, is that you
can put together a very small image, and still do ALOT. I've built my own
Nodejs image with a few standard Debian(linux) tools, plus Express, and
socket.io that is less than 200M in size. 191M to be exact. Thanks to
Robert's barefs rootfs which weighs in at around 70-75M.


On Wed, Aug 27, 2014 at 1:04 PM, Jason Kridner <[email protected]>
wrote:

> On Wed, Aug 27, 2014 at 3:19 PM, Robert Nelson <[email protected]>
> wrote:
>
>> On Wed, Aug 27, 2014 at 10:56 AM, jfsbac <[email protected]> wrote:
>> > Hello,
>> >
>> > I have a BeagleBone Black running the Debian distribution.  I am
>> looking at
>> > the web page setup and the interface with node.js in preparation to set
>> up
>> > my own web page that will display some information that I am reading
>> over a
>> > serial port.  It appears that Apache is running as the web server as I
>> see
>> > apache2 processes.  I understand that node.js can be its own web
>> server, so
>> > I am a little perplexed why apache is used in addition to node.js and
>> how
>> > node.js works with apache.
>> >
>> > I also don't see the web pages in the normal /var/www/ location and am
>> > wondering where they are located.
>>
>> Port 80: nodejs (some where in the bone101 dir's..)
>>
>
> The root is currently /var/lib/cloud9/.
>
>
>> Port 8080: apache (/var/www/)
>>
>> Regards,
>>
>> --
>> Robert Nelson
>> http://www.rcn-ee.com/
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to