dongzheng

2215 经验值

没提示错误 ,我修改完,去检查配置,一直是fail

ssl_certificate /etc/nginx/ssl/1_disook.com_bundle.crt;
ssl_certificate_key /etc/nginx/ssl/disook_de.key;
加上这个就出错

ssl on;

ssl_certificate /etc/nginx/ssl/1_disook.com_bundle.crt;
ssl_certificate_key /etc/nginx/ssl/disook_de.key;

这几行配置加上就出错

listen 443;

    server_name disook.com www.disook.com;

    root /var/www/blog/public;
    index index.php index.html index.htm;

    ssl on;
    ssl_certificate /etc/nginx/ssl/1_disook.com_bundle.crt;
    ssl_certificate_key /etc/nginx/ssl/disook_de.key;

    ssl_session_timeout 5m;

    ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
    ssl_prefer_server_ciphers on;

    location / {
            #try_files $uri $uri/ =404;
            try_files $uri $uri/ /index.php?$query_string;
    }
    location ~ \.php$ {
            try_files $uri /index.php =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php7.1-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
    }

}

然后将这个翻译后的字段存储?在路由中像定义id一样去定义:Route::get('/index/{english_name}, 'Admin\IndexController@getIndex');在这个getindex函数中去获取这个english_name对应的数据?

https://www.laravist.com/discuss/laravel/upload-video-compression-as-laravist-what-did-you-do-1444,这种路由是怎么配置的,为什么会把问题的标题直接转化成这种英文形式?你在视频中都是使用id去访问,不太喜欢,laravist中使用的这种是怎么做到的?

laravist中你是用的视频上传插件是什么?可以压缩吗?使用了cdn吗?laravist中你使用的视频播放时video.js,这个包npm安装后再前台的blade模板中怎么去引入js和css。

 $attributes = [
            'trade_type'       => 'JSAPI', // JSAPI,NATIVE,APP...
            'body'             => '用户订单',
            'detail'           => 'iPad mini 16G 白色',
            'out_trade_no'     => time(),
            'total_fee'        => 1,
            'notify_url'       => 'http://disook.com/cart', // 支付结果通知网址,如果不设置则会使用配置里的默认地址
            //'sub_openid'        => $user->openid, // 如果传入sub_openid, 请在实例化Application时, 同时传入$sub_app_id, $sub_merchant_id
            // ...
        ];
        $order = new \EasyWeChat\Payment\Order($attributes);


        $result = $this->wechat->payment->prepare($order);
        dd($result);
        if ($result->return_code == 'SUCCESS' && $result->result_code == 'SUCCESS'){
            $prepayId = $result->prepay_id;

        }

返回签名错误

操作系统:Ubuntu 14.04,64位,谢谢,在线等!

按照你给的链接里的视频,当安装到:sudo apt-get install vim htop git;的时候就会报错。
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:

LANGUAGE = "en_US:",
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 121828 files and directories currently installed.)
Preparing to unpack .../vim_2%3a7.4.052-1ubuntu3.1_amd64.deb ...
Unpacking vim (2:7.4.052-1ubuntu3.1) over (2:7.4.052-1ubuntu3) ...

操作系统:Ubuntu 14.04,64位,laravel5.3 需要php5.6,但是Ubuntu默认的php版本是5.5.9,我想问怎么在安装的时候直接安装5.6.谢谢!