Category: Shell
-
Post Views: 15 1. Reference: Run the .sh or shell script files in WSL in Windows 10. Since the .sh file is run, all environment configurations in the file must depend on the configuration items in Ubuntu. But the environment configuration in Ubuntu is not perfect. Decided to replace the shell script with php script 2. The code implementation of…
-
Post Views: 17 1. Reference:https://www.shuijingwanwq.com/en/2022/12/13/9977/. Run .sh or shell script files using WSL in Windows 10. Ultimately not realized. 2. Reference:https://www.shuijingwanwq.com/en/2021/12/23/9949/, to step 7 3. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 4. Ubuntu will mount or provide all Windows directories under /mnt. Hence the C…
-
Post Views: 86 1. Enable WSL, refer to: https://www.shuijingwanwq.com/en/2021/12/23/9949/ , execute to step 5 3, the existing test.sh file, the code is as follows 4. Run Windows Terminal as an administrator and execute the command: bash test.sh . run successfully. as shown in Figure 1 5. The existing Themes.sh file, the code is as follows 6. Error at runtime: syntax…
-
Post Views: 20 1. Execute the command: ./20.04/install_elasticsearch.sh 7 After installing Elasticsearch, the corresponding version of the IK segmentation plugin is not installed. as shown in Figure 1 2. Decide to edit install_elasticsearch.sh, the reason should be to determine whether the code to install the plugin is invalid. 3. Execute the command: /usr/share/elasticsearch/bin/elasticsearch-plugin list, there is still no corresponding plugin.…
-
Post Views: 19 1. When executing “./20.04/nginx_add_site.sh”, fill in the project name and report the error “Item name contains illegal characters” error. as shown in Figure 1 2. Edit ./20.04/nginx_add_site.sh, and comment out the code that prompts the error. as shown in Figure 2 3. The execution will be executed again ./20.04/nginx_add_site.sh, no more errors will be reported. as shown…
-
Post Views: 17 1. When executing the command: docker-compose -f docker-compose.yml up –build –force-recreate, an error: error[startup_object-fpm internal]Load metadata for docker.io/library/php:7.4-fpm-alpine . 2. After pulling the latest code, execute the command again, and report an error: Error Response from Daemon: Error while creating mount source path. as shown in Figure 1 3. Decide in Docker, delete the volumes of the…
-
Post Views: 16 1. A total of 4 environment variables are configured in Rancher. as shown in Figure 1 2. Check the log of the container, there are 2 environment variables missing. as shown in Figure 2 3. The result is that the missing 2 environment variables in the configuration file are not replaced. as shown in Figure 3 4.…
-
Post Views: 15 1. Modify the multi-domain name mode to a single domain name mode, and modify the file: frontend/config/main.php. as shown in Figure 1 2. Modify the multi-domain name mode to single-domain name mode, and modify the file: etc/nginx/conf.d/ccp_api.conf. as shown in Figure 2 3. Now plan to upgrade the container based on the environment variable: channel_pub_api_cfg_frontend_domain_mode=single|multiple. Default: single.…