In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Update (for specific documents, please contact this blogger, there is a blogger's email address on the home page)
two。 Install MySQL
# enter the same password twice in a row
3. Install nginx and php
Add ppa feeds for nginx and php
4. Install Nginx
5. Install PHPFastCGI Manager
6. Modify the configuration file (this step can be omitted)
7. Check to see if listen = / run/php/php7.0-fpm.sock is open
It is usually open.
8. Modify and restart php-fpm7.0 (can be ignored)
9. Modify nginx configuration file
Sudo vim / etc/nginx/sites-enabled/default
# Add index.php to the list if you are using PHP
Index index.php index.html index.htm index.nginx-debian.html; add index.php
Server_name _
Location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
Try_files $uri $uri/ = 404
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
Location. Php$ {remove # here
Include snippets/fastcgi-php.conf; removes # here.
#
# # With php7.0-cgi alone:
# fastcgi_pass 127.0.0.1:9000
# # With php7.0-fpm:
Fastcgi_pass unix:/run/php/php7.0-fpm.sock; removes # here.
} remove # here
The 10.socket method must be the same as the listen path of the above socket
11. Restart nginx
twelve。 Under the / var/www/html/ directory, create a new index.php test and have a look
13. The probe display is completed.
PHP Version 7.0.18-0ubuntu0.16.04.1
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.