Category: CentOS
-
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: 76 1. Open the URL: https://wiki.swoole.com/wiki/page/7.html , check the environment dependencies, as shown in Figure 1 environment dependence Only supports Linux, FreeBSD, macOS, 3 types of operating systems Linux kernel version 2.3.32 or above php-5.3.10 and above, including php7 GCC4.4 or above or clang CMake2.4+, you need to use CMake when compiling to libswoole.so as a C/C++ library…
-
Post Views: 14 1. Copy\vendor\yiisoft\yii2\console\controllers\cacheController .php to \console\controllers\luagameteamskillController.php, as shown in Figure 1 2. Rename \console\controllers\luagameteamskillcontroller.php to \console\controllers\luagameteamskillcontroller.php, as shown in Figure 2 3. Modify the namespace to namespace console\controllers;, and the class name is modified to luagameteamskillController, as shown in Figure 3 4. Only keep ActionIndex(), other methods are deleted, as shown in Figure 4 5. In Windows PowerShell,…
-
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…
-
Post Views: 12 1. Continue to the previous article:https://www.shuijingwanwq.com/2016/04/16/1006/ 2. Execute the command, as shown in Figure 1, and report an error, indicating that yum has failed to execute. The following methods can be solved: yum -y install wget screen python #for centos/redhat 3. According to the analysis, it should be the error caused by the network connection failure, execute…
-
Post Views: 16 1. When creating a new virtual computer, it is found that the 64-bit system cannot be selected, as shown in Figure 1: 2. Enter the BIOS to enable the virtualization technology, and set Intel Virtualization Technology to Enabled, as shown in Figure 2: 3. Save and exit the BIOS, as shown in Figure 3: 4. When creating…
-
Post Views: 13 1. You need to implement this URL first:https://www.shuijingwanwq.com/2014/12/26/439/ 2. Uninstall the current PHP version and execute the command, as shown in Figure 1: yum remove php* 3. Install the php5.6 version and execute the command, as shown in Figure 2: yum install php-mysqlnd php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-cli php-common php-devel php-mbstring php-mcrypt php-soap php-bcmath…
-
Post Views: 15 1. The premise is to install Redis under Windows 8.1, and the configuration supports the implementation process of PHP:https://www.shuijingwanwq.com/2015/11/16/769/ Set which IPs the Redis server allows access and passwords, as shown in Figure 1 and 2: BIND 127.0.0.1 192.168.2.30 requirepass n#s7yle$r5s&mmp#w9k9*hjzaptu%hpq Command: service redis restart, restart the redis service; 2. Set the php.ini of the web…
-
Post Views: 13 1. After expanding the capacity and restarting the instance through the console, check the capacity of the console cloud disk: 2. Check the disk space usage, including the data disk that has not been mounted, command: df-h fdisk-l Friendly reminder: If you execute the fdisk -l command and find that there is no /dev/xvdb to indicate that…
-
Post Views: 10 1. When returning to 404, the footer of the web page displays: Apache/2.2.15 (CentOS) server at zhidao.hmwis.com Post 80 2. Edit the httpd.conf file ServerSignature on Modified to: # serversignature on ServerSignature Off 3. When returning 404, the web footer no longer displays the corresponding information 4. Check the response head in Taobao’s message header, server:”nginx” 5.…