Category: Windows 10 Home Chinese Edition
-
Post Views: 8 1. When executing .\nginx -s reload, prompt: nginx:[emerg]host not found in upstream ‘api.aims-api.localhost’ in c:/nginx-1.10.1/conf/vhosts/aims.conf:14, as shown in Figure 1 2. Check lines 13, 14, and 15 of c:/nginx-1.10.1/conf/vhosts/aims.conf 3. Check C:\Windows\System32\drivers\etc\hosts and find that 127.0.0.1 api.aims-api.localhost has been deleted because of the Windows 10 upgrade 4. Overwrite the previously backed up hosts file to C:\Windows\System32\Drivers\etc\hosts, as…
-
Post Views: 13 1. Configuration file: \common\config\params-local.php, self-media as the source 2. Create a new service class, \Common\Services\AssetService.php to implement a static method: CopyAssets 3. Reference the service class, \common\services\AssetService.php, call the static method: CopyAssets 4. After running the method, print out $AssetServiceResult 5. Check the copied directory and files, which are in line with expectations, as shown in Figure…
-
Post Views: 15 1. Reference URL:https://docs.phpmyadmin.net/zh_CN/latest/setup.html#installing-using-composer 2. Install and run the command based on composer, as shown in Figure 1 3. Enter the phpmyadmin-localhost directory, update phpmyadmin to the latest version, and run the command, as shown in Figure 2 4. Use the installer to generate the configuration file: config.inc.php, open the browser and use the /setup suffix to access,…
-
Post Views: 13 1. There are 3 applications in the directory structure at this stage, namely: Frontend, Backend, and API, and their domain names are configured as :http://www.channel-pub-api.localhost/,http://www.channel-pub-api.localhost/backend,http://www.channel-pub-api.localhost/api 2. Edit the hosts file 3. Reference:https://github.com/mickgeek/yii2-advanced-one-domain-config/blob/master/vhosts/nginx.conf, edit \frontend\config\main.php 4. Edit \backend\config\main.php, set the baseURL, separate session and cookie 5. Edit \api\config\main.php 6. Edit \api\config\urlmanager.php 7. Edit \environments\dev\frontend\web\robots.txt, \environments\prod\frontend\web\robots.txt Before editing: After…
-
Post Views: 32 1. Based on yii2tech\ar\SoftDelete\SoftDeleteBehavior, the soft deletion of ActiveRecord is realized, and the URL is opened:https://github.com/yiisoft/yii2/blob/master/docs/guide-zh-CN/concept-behaviors.md, as shown in Figure 1 2. Install the ActiveRecord extension of Yii2, use the self-update command to update the composer to the latest version, use the update command to obtain the latest version of the dependencies, and upgrade the composer.lock file,…
-
Post Views: 14 1. The Windows 10 system has been upgraded once on 2018/06/26, and the previous version of Windows is backed up in the windows.old directory, as shown in Figure 1 2. Check the C drive space, 36.0 GB is available, as shown in Figure 2 3. Check the URL:https://support.microsoft.com/zh-cn/help/4028075/windows-delete-your-previous-version-of-windows, ten days after upgrading to Windows 10, the previous…