1、虚拟机LNMP
百度网盘:链接:https://pan.baidu.com/s/1rEfXQY7TYi_rJhYRGdJJ_Q
提取码:kwyl
下载解压到 D:\vms\centos7.0-lnmp-raw-x86_64
修改Vagrantfile文件:
config.vm.box = "lnmp"
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.ssh.insert_key = false
config.vm.network "private_network", ip: "192.168.10.200"
config.vm.synced_folder "D:/phpStudy/PHPTutorial/WWW/lnmp", "/mydata/data"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
启动虚拟机
cmd
d:
cd D:\vms\centos7.0-lnmp-raw-x86_64
vagrant box add lnmp centos7.0-lnmp-raw-x86_64.box
vagrant box list
vagrant up
xshell
127.0.0.1:2222 vagrant / vagrant
su root
raoxiaoya
cd /mydatda/data
php -v
php 7.1.30
php -m
netstat -lntp
// 或者 pecl install swoole-4.1.1
wget http://pecl.php.net/get/swoole-4.1.1.tgz
tar -zxf swoole-4.1.1.tgz
cd swoole-4.1.1
phpize
./configure
make && make install
/etc/php.ini
extension=swoole.so
php -m
此时swoole扩展安装完成。