Ubuntu System Configuration Boa Server graphic detailed
[Date: 2013-07-15] |
Source: Linux Community dikcychen2011 |
[Font: Big Small] |
The BOA server is a small and efficient Web server, which is a CGI-capable HTTP server that runs under UNIX or Linux, and is suitable for embedded system single tasks, with open source code and high performance. : http://www.boa.org/
The idea of configuring and porting to an embedded system on a PC is similar, and the key is to modify the boa.conf file, such as the compiler, and create the appropriate directory. If it's done on a PC, it's easy on the arm board.
There is a lot of information about the configuration of this server on the Internet, and it is basically feasible. But personally think a lot of introduction method is first let people "wrong", just tell the real operation method, too toss people. According to the individual configuration process, do a tidy up, according to the following steps, should be able to complete the configuration successfully.
Related reading: There is also an Ubuntu configuration Boa Server http://www.linuxidc.com/Linux/2011-08/39780.htm
1. Decompression
Place the downloaded source tarball in a directory, and then execute:
Tar–xvzf Boa-0.94.13.tar.tar
2, enter the/BOA-0.94.13/SRC directory, you can see the following files
Modify the Compat.h file
#ifdef Have_tm_gmtoff
#define TIMEZONE_OFFSET (foo) foo##->tm_gmtoff
#else
#define TIMEZONE_OFFSET (foo) TIMEZONE
#endif
Switch
#ifdef Have_tm_gmtoff
#define TIMEZONE_OFFSET (foo) foo->tm_gmtoff
#else
#define TIMEZONE_OFFSET (foo) TIMEZONE
#endif
3. Implementation:./configure
After that, you can view and generate some new files:
Execute make again
More target files are generated at this time:
4. Copy the/boa-0.94.13/boa.conf to the/etc/boa directory:
Mkdir/etc/boa
CP Boa.conf/etc/boa
5. Enter the/etc/boa directory, open the boa.conf file, and make the following changes:
(1) Change the user nobody and group Nogroup to: User 0 and group 0, as follows:
(2) Modify the path
Switch
Exit after saving
Original address: http://www.linuxidc.com/Linux/2013-07/87375.htm
Ubuntu System Configuration Boa Server graphic detailed