In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. Configure firewall, open port 80 and port 3306 @@@(please contact this blogger for specific documents, there is blogger mailbox on the home page)@@
CentOS 7 uses firewall by default, which is changed to iptables firewall.
1. Close firewall:
2. Install iptables firewall
3.vi #Edit the firewall configuration file, open ports 80 and 3306 and add them below 22
4. restart the service
5. Close SELINUX
6.
#Temporary shutdown of firewall
7. Install Download Tool
8. download
9. installation
10. Update yum source
11. install Nginx
12. Set up nginx boot
13. restart nginx
Source of Centos7
15. Install PHP and support
16. install PHP
17:#
//Change configuration file to backup file
18:#
//Since the original configuration file has to be written by itself, you can use the default configuration file as the configuration file
19: # vi /etc/nginx/nginx.conf
//Modify nginx configuration file to add fastcgi support
index index.php index.html index.htm;
//add index.php
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params; modify above here
20. Modify PHP configuration files
vi /etc/php.ini
Add cgi.fix_pathinfo = 1 in the last line
21. Service restart
22. One of two ways to create a test page in the Nginx directory
(1)[root@htuidc ~]# vi /usr/share/nginx/html/index.php
Create directly in the directory
(2)[root@htuidc ~]# cd /usr/share/nginx/html
Go into the directory and create
# vi index.php
!!!!!! install mariadb!!!!
centos7 installs mariadb by default
install MariaDB
CentOS 7.0 has replaced MySQL database with MariaDB
1. Install MariaDB
Delete databases and data tables
mysql>drop database name;
mysql>drop table name
Delete account and permissions:
>drop user username @'%';
>drop user username @ localhost;)
Disallow root login remotely? [Y/n], enter n to allow remote login root password.
If the remote still cannot access the database, execute:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'yunjisuan';
flush privileges;)
!!!!! Install MySQL methods when!!!!
1. query
2. uninstall
3. Download MySQL Source
4. Install yum library
5. install MySQL
6. Start MySQL service
7. View random password
8. Change MySQL password
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.