Recently, I had an online chat with a reference to the ape demo. However, when I set up the environment, I encountered a lot of problems. it was a great deal of hard work to learn the truth. Only
Recently, I had an online chat with a reference to the ape demo. However, when I set up the environment, I encountered a lot of problems. it was a great deal of hard work to learn the truth. I hope to give more help and save valuable time with my experience.
First of all: you need to look at ape's official site ape-project.org, there are demo, wiki, and ape-server and ape-jsf
Second, you should download the latest ape server and ape-jsf from the github link on the official website.
I. ape server
1: install ape server. my environment is centos. to install ape server, you must first perform the following operations, install the following package (Here is a list of requirements you will need to complete the installation ):
GNU MakeGCC 3.4 or higherlibc6-dev (or similar) libmysqlclient-dev the first one should be install make, the second should be gcc, the third libc6-dev this can be checked by yourself, I am not very clear,
The fourth one is used to connect to mysql, but I encountered a problem when installing ape-server/usr/bin/ld: can not find-llibmysqlclient_r. the solution is:
Http://serverfault.com/questions/278940/failing-to-build-ape-server-on-centos)
To make this work, you must edit the Makefile in the modules directory. On line 7 change (modify the APE_Server/modules/Makefile file)
Put the following line
MYSQL_FLAGS = -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r
Changed:
MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib64/mysql -I./deps/mysac/ -lmysac -lmysqlclient_r
Then you can install it with./build. sh.
2: After the installation, modify ape. conf in the bin directory.
Generally, you only need to modify
(1) username and group under uid. you can create a username and group by yourself, such as ape/ape.
(2) ip_listen is the IP address of your server, and domain is the domain name of your website, such as sina.com.
3: After the above two items are completed, ape is started.
Cd to the bin directory./ape -- cfg./ape. conf.
For details, refer to the log file (bin/ape. log)
II. ape-JSF
Ape-jsf: I copied it directly to the root directory of the website.