In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In fact, the official document is also very clear.
Mainly post the problems I encountered.
Environment:
LNMP
(LAMP has not tried, interested students can try, and then send it.)
PHP5.3 above, php-mbstring module, php-pdo module, mysql database
Clone or download the code:
Https://github.com/star7th/showdoc
Import database
After downloading the code, import the showdoc.sql file with the directory into the mysql database
Modify the configuration file
Enter the Application/Common/Conf/ directory, edit the config.php file, and fill in the corresponding database information
Directory permissions
Make sure that Application/Runtime and Public/Uploads have writeable permissions
Error troubleshooting
If there is an error during deployment, please make sure that you follow the above steps (for example, whether you have directory permissions). Then go to Application/Runtime/Log to take a look at the log, or clear all the files (cached) under the Application/Runtime/ directory.
Possible errors:
1. After setting up the environment, the home page can enter, but the rest of the place will report an error of 404. Check whether the redirection rule under nginx is set correctly.
Location / {
If (!-e $request_filename) {
Rewrite ^ / showdoc-master/index.php (. *) $/ showdoc-master/index.php?s=$1 last
Rewrite ^ (. *) $/ showdoc-master/index.php?s=$1 last
Break
}
}
2, error prompt appears
: (
Page error! , please try again later ~
Check whether the configuration file database is configured correctly. If the configuration is correct, check whether PHP-fpm installs the pdo_mysql module. You can also open debug in ThinkPHP.php to see what's wrong!
3. Click on the project to get an error prompt that the template does not exist.
According to the error prompt, in / Applocation/Home/View/Item/, copy show.html to Show.html. Because linux is case-sensitive, there should be two, a lowercase s and an uppercase S.
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.