我有一个.p12
文件,我也可以将它传输到一个.pem
文件,但如何将其作为.key
文件传输?
错误是:
Cordova Facebook Connect fail on init
Something went wrong com.facebook.Session
Run Code Online (Sandbox Code Playgroud)
我正在使用这个cordova插件:
https://github.com/phonegap/phonegap-facebook-plugin
Run Code Online (Sandbox Code Playgroud)
我还下载了最新的FacebookSDK
我还在config.xml中添加了以下内容:
<plugin name="org.apache.cordova.facebook.Connect" value="org.apache.cordova.facebook.ConnectPlugin" />
Run Code Online (Sandbox Code Playgroud)
我还将"facebooksdk.jar"添加到我的项目的"Referenced Libraries"中.
我还改变了Hackbook示例中的facebook id:
<script>
// Initialize the Facebook SDK
document.addEventListener('deviceready', function() {
FB.init({
appId: '433859509993839',
nativeInterface: CDV.FB,
useCachedDialogs: false
});
FB.getLoginStatus(handleStatusChange);
authUser();
updateAuthElements();
});
Run Code Online (Sandbox Code Playgroud)
但是当我运行示例"Hackbook"时,会显示错误.请帮忙,也许只是给我一些提示.
我在macbook air中成功运行了APNS代码,但事实证明我无法在其他计算机上运行它:
我检查了它们是一样的:1..pem文件(具体)2.程序
电脑无法正常工作:
Windows 7,XAMPP,支持OpenSSL,无防火墙
和
打开2195和2196的EC2 Linux服务器
可能是导致我在我的PHP代码中出现此错误的其他问题?
Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195'
Run Code Online (Sandbox Code Playgroud)
我知道可能有没有打开SSL的原因,但我检查了phpInfo(),它应该是正确的.
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1c 10 May 2012
OpenSSL Header Version OpenSSL 0.9.8x
Run Code Online (Sandbox Code Playgroud)
我在EC2服务器上试过telnet,它给出:
telnet gateway.push.apple.com 2195
Trying 17.149.36.239...
Connected to gateway.push-apple.com.akadns.net.
Escape character is '^]'.
Run Code Online (Sandbox Code Playgroud) 在Git中,我们可以使用*
指定的文件名,如*.jpg
,*.*
但怎么样目录?
是否有任何方法来指定所有目录?
这不起作用:
git rm firstdirectory/*/thirddirectory
Run Code Online (Sandbox Code Playgroud)
该*
不会做了"所有目录"的效果.
我刚刚使用eb deploy
并尝试使用 zip 上传,elatic beanstalk 环境显示“降级”。
我点击进去看到的日志是
Overall
Degraded
Impaired services on all instances.
Severe
Following services are not running: web.
Run Code Online (Sandbox Code Playgroud)
我的 app.js 文件:
const express = require('express');
const app = express();
app.listen(3000, () => {
console.log("Sever console log.")
});
Run Code Online (Sandbox Code Playgroud)
package.json内容
{
"name": "project_api",
"version": "1.0.0",
"engines": {
"node": "12.18.3"
},
"description": "the server side of the api",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Businsoft Limited",
"license": "ISC",
"dependencies": …
Run Code Online (Sandbox Code Playgroud) AppSync 的优点是它是一项托管 GraphQL 服务。
但我不想使用 DynamoDB,我可以插入 MongoDB 吗?
怎么做?
我安装了一个 mongodb 作为 Windows 服务,
之后我更新了配置文件:mongod.cfg
我想重新启动服务,以便它可以重新加载我的配置,
如何重新启动 MongoDB 服务?
环境:
Windows 10
MongoDB 4.2
安装路径:C:\Program Files\MongoDB\Server\4.2\bin