Build www server under Linux

Source: Internet
Author: User
Tags shell account

The occasional opportunity to touch the front-end development, although initially intended to be backstage.

But now it seems that the front-end database is inseparable!

In retrospect, I feel that my level of learning is also very good, because before learning C language, C + + foundation, so in the process of learning html,js feeling is still very relaxed, is so-called: grammar similar, rules can follow. And most importantly, these jobs can quickly improve their self-confidence and increase the sense of accomplishment!

Then the database, the individual read "easy to master MySQL", "Basic Database Tutorial", "MySQL from Beginner to proficient" 3 book, as a primer, personally think "MySQL from beginner to proficient" is definitely the first choice, clear-organized, for example to the point! and "Easy to master MySQL" is more focused on the author's experience sharing and all kinds of SQL comparison, relatively speaking, seems a bit messy! As for the 2nd, it focuses more on the theory and principle.

Backstage, personal choice is jsp to write, for Java learning individual is self-taught, as well as other languages, similar syntax, there are rules to follow! However, mastering the language base is not enough for writing background programs, but also needs to understand the role and synergy of various Java classes. For now, I think it's a good idea to read the API documentation for the project if you have the patience to do so.

The interaction between the previous page and the database requires dynamic language, jsp,php and so on, except that there are Ajax asynchronous updates (due to the temporary understanding is not deep, so the details of the difference is not yet very familiar)

PHP as a dynamic language, easy to understand, powerful, for beginners, it is easy to create a sense of accomplishment.

/.......................................... The dividing line ..../..../..../..../..../..../..../..../..../.....

The above is a personal study of the above knowledge 1 years of experience, write down, shelf!

With the idea of the front and back, build a server to set up a own website will have a considerable part of the emboldened (although WWW server erection with these languages do not have the slightest relationship, but the server is always to use, oneself can complete, but also very fulfilling sense)

Lamp Gold combination, is the predecessor's recommendation! Coupled with the Linux system is respected by most programmers, so the personal setting up the server environment is also a Linux system, like bird Brother, the choice is the CentOS distribution.

At present, CentOS has been to centOS7, relative to the previous version, there is a change, and the setting of the WWW server with a great relationship!

(1) Yum install httpd mariadb mariadb-server php php-mysql and other optional useful modules

(2) systemctl start httpd mariadb

(3) vim/etc/httpd/conf/httpd.conf set the server's servername and the related folder access rights

(4) Vim/etc/php.ini set some parameters as needed.

(5) Systemctl Restart httpd

Experience the above settings, LAN access to the server has no problem.

For other network segment users can also access, then need a public IP, in order to facilitate the entry of Web site address, a domain name is also very necessary

(6) Pay for the domain name, or free to register www.no-ip.com, peanut Shell account (take Noip as an example)

(7) Download the domain name Mapping software provided by NOIP website and follow the instructions to install

(8) Open 80 port and reload: Firewall-cmd--zone=public--add-port=port=80/tcp--permanent;firewall-cmd--reload

(9) If it is wired, the computer has a public network IP, only need to do the domain name and IP correspondence can be; if it is a connected wireless network, then port forwarding is required, that is: The login router adds the corresponding entry in the forwarding rule

Through the above steps, the site has been set up, the next thing to consider is the optimization settings.

Build www server under Linux

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.