小编ju_*_*ju_的帖子

在Windows 10和PHP7上将ZeroMQ PHP扩展添加到XAMPP

我在向XAMPP添加ZeroMQ PHP扩展时遇到问题.

设置:Windows 10,PHP7,XAMPP(7.0.9)

我已采取的步骤:

  1. 将PHP(D:\xampp7\php)和PHP扩展(D:\xampp7\php\ext)目录添加到系统变量(PATH)

  2. 按照zeromq.org上的说明进行操作.我从pecl存储库下载了x86ts版本,因为列出的快照链接(http://snapshot.zero.mq/)已关闭.

  3. 复制libzmq.dll到PHP目录并php_zmq.dll进入PHP扩展目录

  4. 通过添加并检查扩展目录更新php.ini(D:\xampp7\php\php.ini)extension=php_zmq.dllextension_dir="D:\xampp7\php\ext"

  5. 通过控制面板重新启动XAMPP.

Apache错误日志显示以下内容:

[Sat Nov 26 18:30:27.461679 2016] [ssl:warn] [pid 15280:tid 588] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Nov 26 18:30:27.546320 2016] [core:warn] [pid 15280:tid 588] AH00098: pid file D:/xampp7/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat …
Run Code Online (Sandbox Code Playgroud)

php windows apache xampp zeromq

6
推荐指数
1
解决办法
4819
查看次数

无法停止由 nodemon 运行的服务器

我为单元测试创​​建了 gulp 任务。我添加 nodemon 以自动运行服务器然后运行测试。但是再次运行 gulp 任务时出现错误。我有错误,该端口已经忙于另一个进程。

我使用此代码:

var gulp = require('gulp'),
    gulpUtil = require('gulp-util'),
    gulpShell = require('gulp-shell'),
    gulpEnv = require('gulp-env'),
    gulpNodemon = require('gulp-nodemon'),
    gulpMocha = require('gulp-mocha');

gulp.task('default', function () {
    gulpUtil.log('unit - run unit tests');
});

gulp.task('server', function (callback) {
    var started = false;

    return gulpNodemon({
        script: './build/app.js'
    })
        .on('start', function () {
            if (!started) {
                started = true;

                return callback();
            }
        })
});

gulp.task('unit', ['server'], function () {
    return gulp.src('./src/*.js')
        .pipe(gulpMocha({reporter: 'spec'}))
        .once('error', function () {
            process.exit(1);
        }) …
Run Code Online (Sandbox Code Playgroud)

node.js nodemon gulp

1
推荐指数
1
解决办法
7355
查看次数

标签 统计

apache ×1

gulp ×1

node.js ×1

nodemon ×1

php ×1

windows ×1

xampp ×1

zeromq ×1