In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to build Web server under CentOS 6.2.To solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a simpler and easier way.
Building web Server under Centos 6.2
Nowadays, Linux is more and more widely used in Web, and many enterprises use Linux to build Web servers, which not only saves the cost of purchasing legitimate software, but also improves the security of the server.
In fact, besides Red Hat and openSUSE,CentOS, it is also the Linux version that people often use to build Web servers.
CentOS is the recompiled version of RedHat Enterprise Linux (hereinafter referred to as RHEL), the leader of the enterprise Linux distribution. RHEL is the linux distribution adopted by many enterprises, which needs to pay RedHat to use it, and can get paid services and technical support and version upgrades. This CentOS can build a linux system environment like REHL, but does not need to pay any fees to RedHat, nor can it get any paid technical support and upgrade services.
Because it comes from the same source code, some servers that require high stability replace the commercial version of Red Hat Enterprise Linux with CentOS. The difference between the two is that CentOS does not contain closed source software. So here is how to build Web servers with Apache 2, PHP5 and MySQL under CentOS6.2. I hope it will be helpful to some people.
1. Begin to explain
The IP address used in this tutorial is 192.168.0.100, and the host name is Server1.example.com. These settings may be different and you need to modify them according to different circumstances.
Install MySQL under CentOS 6.2
two。 Start installing MySQL5
First, we should install MySQL with the following command:
Yum install mysql mysql-server
Then we need to create a startup key link for the MySQL system to start the MySQL server so that MySQL can start automatically when the system starts
Chkconfig-levels 235 mysqld on
/ etc/init.d/mysqld start
Set the password for the MySQL root account:
Mysql_secure_installation
The following series of prompts appear:
Root@server1 ~] # mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
Password for the root user. If you've just installed MySQL, and
You haven't set the root password yet, the password will be blank
So you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
Root user without the proper authorisation.
Set root password? [Y/n]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.