Apeserverchat is built based on the centos environment

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.