Category: Nginx
-
Post Views: 64 1. Create a new warehouse, shuijingwan/yii2-app-advanced, as shown in Figure 1 Yii 2 advanced project template, the template includes four layers: interface (the API to implement the RESTful style web service service), front-end, back-end and console, each of which is a separate YII application. 2. Successfully created the warehouse, as shown in Figure 2 3. Use the…
-
Post Views: 55 1. Install React Developer Tools (Chrome, React Developer Tools) to determine whether the build process is correct, as shown in Figure 1 2. When visiting a React page of a development mode, the icon of this tool will have a red background, as shown in Figure 2 This page is using the development of react. Note that…
-
Post Views: 16 1. Under Windows 10, Nginx 1.10.1, execute the command: nginx -s reload, reload the nginx configuration, and report an error: nginx:[emerg]host not found in upstream “default.creditshop.shenzhen.localhost” in c:/nginx-1.10.1/conf/vhosts/credits Hop_shenzhen.conf:26, as shown in Figure 1 2. Check the Nginx configuration file and find that an error is reported at proxy_pass, as shown in Figure 2 3. Edit the…
-
Post Views: 11 1. The picture in the red box in the web interface is a picture called across the second-level domain name, as shown in Figure 1 2. The source code of the web page, the picture address in the red box is the second-level domain name relative to the current web page address, as shown in Figure 2…
-
Post Views: 52 1. In Windows Powershll, enter the wwwroot directory, as shown in Figure 1 2. Through the Composer installation, run the following commands and install it in the kaiqiu_shujujixi_api directory, as shown in Figure 2 and 3 composer create-project yiisoft/yii2-app-advanced kaiqiu_shujujixi_api 2.0.10 3. Enter kaiqiu_shujujixi_api directory, right-click, select git bash here, as shown in Figure 4 4. Execute…
-
Post Views: 14 1. Install yii2-starter-kit under Windows 10 and Nginx 1.10, and run on the command line: php console/yii app/setup, as shown in Figure 1 2. Error: create unique index IDx_article_slug on {{%article}} (slug) …exception: sqlstate[42000]: Syntax error or access Violation: 1071 specific key was too long; max key length is 767 bytes, as shown in Figure 2 Translation:…
-
Post Views: 11 1. Edit the nginx.conf file and add a total of 5 virtual hosts, as shown in Figure 1: 2. Execute the command: nginx -s reload, reload, report an error, as shown in Figure 2: Tips: nginx:[emerg]Could not build server_names_hash, you should increase server_names_hash_bucket_size: 32 Translation: nginx:[emerg]Unable to build server_names_hash, should add server_names_hash_bucket_size: 32 3. Open the URL:http://nginx.org/en/docs/http/server_names.html,…
-
Post Views: 12 1. The first connection is selected, as shown in Figure 1: 2. Due to the instance type: I/O optimization, disk type: SSD cloud disk, so refer to the URL:https://help.aliyun.com/knowledge_detail/6689611.html 3. The download link of auto_fdisk_ssd.sh, as shown in Figure 2: http://aliyun_portal_storage.oss-cn-hangzhou.aliyuncs.com/help%2Fecs%2Fauto_fdisk_ssd.zip?spm=5176.776689611.0.0.DmH9za&file=help%2Fecs%2Fauto_fdisk_ssd.zip 4. Download tool: auto_fdisk_ssd.sh, after pasting the download link, you need to modify it, as shown…