-
php教程之PHP7 安装 Swoole 教程(3)
再执行
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
[root@VM_0_5_centos swoole]# ./configure --with-php-config=/home/work/study/soft/php/bin/php-config [root@VM_0_5_centos swoole]# make [root@VM_0_5_centos swoole]# make install [root@VM_0_5_centos swoole]# cd /home/work/study/soft/php/lib/php/extensions/no-debug-non-zts-20170718/ [root@VM_0_5_centos no-debug-non-zts-20170718]# ll total 17664 -rwxr-xr-x 1 root root 3589814 Apr 2 22:04 opcache.a -rwxr-xr-x 1 root root 1979620 Apr 2 22:04 opcache.so -rwxr-xr-x 1 root root 12488337 Apr 2 22:41 swoole.so [root@VM_0_5_centos lib]# ll total 80 drwxr-xr-x 15 root root 4096 Apr 2 22:05 php -rw-r--r-- 1 root root 71232 Apr 2 22:17 php.ini [root@VM_0_5_centos lib]# vi php.ini [root@VM_0_5_centos lib]# pwd /home/work/study/soft/php/lib 在php.ini文件中添加:extension=swoole.so 查看是否添加成功:php -m [root@VM_0_5_centos server]# php echo.php ^C [root@VM_0_5_centos server]# pwd /home/work/study/softpackage/swoole/examples/server //新开窗口 [root@VM_0_5_centos server]# netstat -anp|grep 9501 tcp 0 0 0.0.0.0:9501 0.0.0.0:* LISTEN 23406/php [root@VM_0_5_centos server]# netstat -anp|grep 9501 [root@VM_0_5_centos server]# pwd /home/work/study/softpackage/swoole/examples/server |
更多学习内容请访问:
腾讯T3-T4标准精品PHP架构师教程目录大全,只要你看完保证薪资上升一个台阶(持续更新)