A newbie installed on the day has been recorded throughout the Community

Source: Internet
Author: User

First of all, I declare that this article is intended for cainiao like me who are familiar with JSP, so that they will not read it, so as not to waste your time. In addition, the software environment I use is as follows.
Win2000servers + Apache + j2sdk + resinee + MySQL is applied on the LAN. The LAN address of the server is 192.168.3.1.

About a month ago, a big sister found me and asked me to help her build a website community through the Internet. My big sister is an old online worm. Her favorite is chatting online. She has made many good friends, but she has little technical skills. She asked me to install and use the Tianyi community because the interface of the Tianyi community is similar to one we liked before. That community was set up by a friend of ours on the board. Like loaer, the code in this community is compiled by this friend. He is a professional programmer, his community is more mature in terms of functions and interfaces than Tian Yi. Unfortunately, this friend is only a technical expert and will not be commercially promoted. Such a good program is only applied on the Bureau's Internet. Not long ago, he went out to develop and shut down the community, because that community can only be maintained by itself. After the community was turned off, many netizens felt very lost, especially my big sister. In order to continue to contact her friends, she wanted to set up a community to facilitate the exchange of friends. I am used to the communities of my friends. Now I can look at popular forums such as the mobile network. The interfaces are the same, and the pages are similar to the tables. Only tree interfaces like Netease are more comfortable. However, all our friends in the Community said that our community is more comfortable than the Netease community. However, if you don't like it, you have to go back to the next step and search everywhere. Finally, you find the Tianyi community, which is basically the same as Netease. Therefore, the installation task was handed over to me. At first, I thought it was very simple because I installed websites and forums, such as mobile networks and mobile devices. The help systems of these programs are very detailed and follow the steps below, basically, there is no trouble. But after reading v5.x from the Tianyi community, I feel a little different. I am not familiar with JSP, Apache, resin or even MySql in this Community. I am not engaged in the computer industry, I am just a computer enthusiast. The advantage lies in hardware and network maintenance. If something goes wrong with the computer and network, I can quickly find out something wrong. In programming, I only know some simple database and programming knowledge. According to the documents in the documents of Tianyi, I began to query the JDK, resin, and MySQL installation information online. I would like to say that the current information is indeed developed and I soon found dozens of documents. Due to the busy work at that time, we can only use the broken block time to configure the downloaded materials, but failed to work several times. To sum up, the reason is that the downloaded materials are incomplete, either there is an error or the software version in the example is low, which is different from the current high version. Due to busy work, the installation task has to be put on hold temporarily. A few days ago, my work was finally loose, so I continued to study Community installation. I accidentally found a good article, "graphic JSP environment installation and configuration", in the chm format. The author is arbiter, according to this article, the problem was basically solved in less than an hour. It is recommended that those who wish to install the Tianyi community under win2000 + Apache + j2sdk + resinee + MySQL should refer to this article. You can search by search engine. Here I provide a web page: http://www.linkmeng.com/art/dispArticle.Asp? Id = 57
The software I downloaded is as follows:
Win2000servers+apache2.0.4920.j2sdk-4874_2_05-windows-i586-p.exe + resinee3.07 + mysql-4.0.18 and MySQL-Front2.5 (MySQL Manager)

Installation process: the first three steps are not described in detail. Please configure them according to "graphic JSP environment installation configuration. Because the Apache server is used, disable the IIS service.
1. install and configure JDK: JDK is j2se, and jdk1.1.8 is later changed to j2se. This is a required tool for running JSP/Java and cannot be used without it.
2. install and configure Apache HTTP Server: an HTTP server, which is famous for its own use. It cannot execute dynamic pages and can run php, JSP, or even ASP after related configuration.
3. install and configure resin: the fastest JSP, Servlet server, and open source code. There are basically no Chinese problems (Chinese characters often change to garbled characters in Tomcat ), support for J2EE (Tomcat requires a third-party plug-in to support J2EE). It is said that it is three times faster than Tomcat (its home page has a test report) and supports Apache and IIS plug-ins. The description of starting resin is clear, but it is troublesome to manually start resin on the server so often. Therefore, you can register resin as a Windows Service and enable it to start automatically when it is started. The method is as follows: enter the DOS window, enter the/resin/bin directory, and enter httpd-install and press Enter.
Note: A. When configuring Apache, you are prompted to enter two 127.0.0.1 in the figure. You just need to enter the IP address of the Local Machine, such as 192.168.3.1. Access to 192.168.3.1 is not affected because the IP address is configured in bbscs. xml under bbscs of the Tianyi community. B. In addition, you must use Dreamweaver to open the resin/CONF/resin. conf file. After opening it with notepad, the content is messy. C. In the article, "use Dreamweaver to open the resin/CONF/resin. conf file and find the following content:
<Doc-dir> doc </doc-dir>
Change to <doc-dir> D:/apache2/htdocs/</doc-dir>"
The file content in resin3.07 has been changed to <document-directory> doc </document-directory>, but the doc is still changed to D:/apache2/htdocs.
-----------------------------------
This file is still in use.
"Search for the following content:
<Http port = '000000'/>
Change to In resin3.07, this line has been directly changed to

4. Install MySQL. MySQL is a multi-threaded, Structured Query Language (SQL) database server. I downloaded mysql-4.0.18-win.zip. I have also used version 4.0.20, but it is a problem that the server service cannot be started normally. Download and unzip the package. Click setup to install the package. The installation process is simple. Click "Next. But pay attention to the installation path. The default value is C:/MySQL. If you want to change it during installation. After the installation, how to implement "Take MYSQL as an example to confirm that the MySQL environment has been established, MySQL manager can use the mysql-front software to create a database in msyql, for example, if the database name is bbscs5, use bbscs5. SQL to import the table structure." A paragraph, let me spend a good long time, download and install the MySQL-Front2.5, how can not connect to the database (see here, someone may laugh at me, no way), the total display: error 2003: Can't connect to MySQL server on 'localhost' <10061>. Later, I found the answer on the Internet. I had to start the MySQL server before connecting. I know two methods. The most convenient way is to enter the/MySQL/bindirectory and run winmysqladmin.exe, after running, a small picture like a traffic light will appear on the taskbar in the lower right corner, and it will automatically start after it is started. (This file in the mysql-4.0.20 boot will prompt not find XX file, can not run properly, so I did not use version 4.20) after the startup and then run the MySQL-Front2.5, then connect, how? Haha. The second method is to enter the DOS interface, enter the MySQL/bin directory, and enter the command mysqld-max-standalone to start. Then how to import bbscs5. SQL, open the MySQL-Front2.5 and connect, new database, such as the name bbscs5, then click "query", then click the folder icon on the right, and then select your bbscs5. SQL file, click the running icon of the triangle and then click OK.
5. Configure BBS-CS. In this case, you can configure it according to bbs-cs.doc, which is included in the source code compressed package of the downloaded community program. If you want other hosts to enter the IP address of your machine, just open/resin/webapps/bbscs5/WEB-INF/classes/COM/laoer/bbscs/sysinfo/bbscs. XML file, find
Http: // localhost: 8080

(Change http: // localhost: 8080 to http: // 192.168.3.1: 8080)

Now, the Community is basically installed. Enter http: // 192.168.3.1: 8080/bbscs5/in the address bar to access it.
I can handle the problem, but after these two days of installation, I feel that laoer still has a lot of work to do. First of all, there are still many deficiencies in the interface and functions, and it is not satisfactory in terms of service, I asked him more than a dozen questions on QQ and answered a few questions in total: "Yes" or "no ". I knew that he was very busy and asked a lot of food, so I didn't want to waste time. However, I think that to popularize your program to the public, you must make the installation steps clear and easy to use. It can be included in the program description document. If it is very large, it can also be placed on the Community Forum, and then fixed to provide a good guiding role for new users. Let's look at the mobile network and ease of operation. There are many areas worth learning from. If it is limited to JSP research enthusiasts, it is difficult to develop too much. Now we can see the access volume of the community.
There is a problem that needs to be solved: How to directly enter http: // 192.168.3.1 in the address bar for access, do not follow: 8080/bbscs5/, because such a long string is not easy to remember. Who can help? Thank you.

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.