In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
I haven't published a blog for a long time. I feel a little sorry for 51CTO and myself. Hey, hey.
Recently, the company is going to install a monitoring server, and this is a good opportunity to sort out the process system, make documents, and share everyone! I think this thing is beneficial to others and self-interest, and it is also convenient for me to review and use it later!
Server version Information:
[root@localhost ~] # cat / proc/version
Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)) # 1 SMP Thu Nov 19 22:10:57 UTC 2015
The operating system image is: CentOS-7-x86_64-DVD-1511.iso
Preparatory work:
Set Ali Cloud yum source as the local default source
[root@localhost yum.repos.d] # mv CentOS-Base.repo CentOS-Server.repo
[root@localhost yum.repos.d] # wget http://mirrors.aliyun.com/repo/Centos-7.repo
[root@localhost yum.repos.d] # mv Centos-7.repo CentOS-Base.repo
Command parsing:
Rename the CentOS-Base.repo file to CentOS-Server.repo
Get the yum source file of Ali Cloud
Set Ali Cloud yum source file as the local default yum source
Add database yum source
[root@localhostyum.repos.d] # wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
[root@localhost yum.repos.d] # rpm-ivhmysql-community-release-el7-5.noarch.rpm
[root@localhost yum.repos.d] # rm-rfmysql-community-release-el7-5.noarch.rpm
[root@localhost yum.repos.d] # cd
Command parsing:
Get the mysql official installation preparation package, get the yum source file of mysql after installation, delete the installation package, and return to the root directory
Installation start
Install Web,mysql and php and their extension services through yum
[root@localhost~] # yum install httpd mysql-community mysql-community-servermysql-community-client php php-devel php-mysql php-pdo php-mbstring php-odbcphp-embedded php-fpm php-embedded-y
…… .
Complete!
Start the Web service to see if the service is working properly
[root@localhost ~] # systemctl starthttpd.service
Write indxe.php test files
[root@localhost conf.d] # vim/var/www/html/index.php
Test the php access effect:
[root@localhost conf.d] # curl http://192.168.171.130
Start the mysql service
[root@localhost conf.d] # systemctl start mysqld.service
Access the database
[root@localhost conf.d] # mysql
Create a database
Mysql > create database zabbix characterset utf8
Query OK, 1 row affected (0.00 sec)
Authorized database user
Mysql > grant all on zabbix.* to'zabbix'@'localhost' identified by "zbbix"
Query OK, 0 rows affected (0.00 sec)
Mysql > flush privileges
Query OK, 0 rows affected (0.00 sec)
Exit the database
Mysql >\ Q
Bye
Set httpd and mysqld services to boot automatically
[root@localhost ~] # systemctl enablehttpd.service
[root@localhost ~] # systemctl enablemysqld.service
So far, the environment is ready!
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.