VMware Workstation Pro
CentOS-7-x86_64-Minimal-1708.iso
教程地址php
一、安装lnmp 二、安装memcache、redis 三、安装opcache 四、安装swoole 五、添加虚拟主机 六、上传项目
pecl install swoole
java
cd到项目下执行: php index.php
redis
1.查找进程pid编号:netstat -apn | grep 9503
(9503为启动swoole时监听的端口号)spring
执行后会出现: "tcp 0 0 0.0.0.0:9501 0.0.0.0:* LISTEN 73731/php" 73731为pid
2.干掉进程:kill -9 73731
shell
3.干掉全部php进程:killall php
apache
安装php redis扩展:pecl install redis
reids启动:cd /root/lnmp1.5/src/redis-4.0.6/src
./redis-server ../redis.conf
win启动: redis-server redis.windows.conf
windows
1.首先安装和你php版本对应的xdebugcentos
使用wget下载bash
wget https://xdebug.org/files/xdebug-2.8.0alpha1.tgz zxvf xdebug-2.8.0alpha1.tgz cdxdebug-2.8.0alpha1
2.对下载下来的文件进行编译(依次执行下面的命令)
安装成功会出现以下所示:
+----------------------------------------------------------------------+ | | | INSTALLATION INSTRUCTIONS | | ========================= | | | | See https://xdebug.org/install.php#configure-php for instructions | | on how to enable Xdebug for PHP. | | | | Documentation is available online as well: | | - A list of all settings: https://xdebug.org/docs-settings.php | | - A list of all functions: https://xdebug.org/docs-functions.php | | - Profiling instructions: https://xdebug.org/docs-profiling2.php | | - Remote debugging: https://xdebug.org/docs-debugger.php | | | | | | NOTE: Please disregard the message | | You should add "extension=xdebug.so" to php.ini | | that is emitted by the PECL installer. This does not work for | | Xdebug. | | | +----------------------------------------------------------------------+
3.修改php.ini配置文件 (remote_host为ssh主机地址ip)
zend_extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so xdebug.remote_enable = on xdebug.remote_autostart = 1 xdebug.remote_port = 9000 ;xdebug.remote_connect_back = 1 xdebug.remote_host = 192.168.20.12 xdebug.auto_trace = 1 xdebug.collect_includes = 1 xdebug.collect_params = 1 xdebug.remote_log = /tmp/xdebug.log
1. vscode链接ssh成功,安装对应的插件 * PHP Debug * PHP Intelephense 2. 修改settings(注意不是修改本地的,是链接ssh后会出现一个ssh远程的配置文件) ```"php.validate.executablePath": "/usr/bin/php",``` 3.f5开启debug访问你的网站就能够了
1.centos安装wget
yum -y install wget yum -y install setup yum -y install perl
2.重启fpm
/etc/init.d/php-fpm restart
1.rocketMq单机环境安装
2.安装Maven
3.安装jdk1.8
4.搭建rocketMq控制台
nohup sh bin/mqnamesrv > /dev/null 2>&1 &
vi /opt/apache-rocketmq/conf/broker.conf brokerIP1=192.168.20.12
输入终端执行
export NAMESRV_ADDR=192.168.20.12:9876
nohup sh bin/mqbroker -n 192.168.20.12:9876 > autoCreateTopicEnable=true -c /opt/rocketmq-all-4.5.2-bin-release/conf/broker.conf /dev/null 2>&1 &
nohup java -jar target/rocketmq-console-ng-1.0.1.jar --rocketmq.config.namesrvAddr=192.168.20.12:9876 > /dev/null 2>&1 &