wget https://excellmedia.dl.sourceforge.net/project/pcre/pcre2/10.31/pcre2-10.31.tar.gz tar -xf pcre2-10.31 cd pcre2-10.31 ./configure make make install
安装Libmcrypt:
1 2 3 4 5 6
wget https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz tar -xf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8 ./configure make make install
安装php
嗯……最新版7.2开怼
1 2 3
wget http://cn2.php.net/get/php-7.2.3.tar.gz/from/this/mirror tar -xf mirror cd php-7.2.3
[root@VM_34_176_centos ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.21
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('Xx..XXXX'); #密码不能太简单 Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.00 sec)
mysql> exit; Bye
安装swoole
1 2 3 4 5
pecl install swoole #添加到php.ini cd /etc vi php.ini extension=swoole.so