我想在Nginx上使用GoDaddy ssl。我遇到了问题,让它无法正常工作。任何帮助,将不胜感激。
我做了以下工作:openssl req -new -newkey rsa:2048 -nodes -keyout img.example.com.key -out img.example.com.csr
将其交给GoDaddy并要求提供新证书。
接下来,我将两个crt文件合并为一个。
假设您的证书文件名为example.com.crt,请使用此命令创建一个名为example.com.chained.crt的组合文件(将突出显示的部分替换为您自己的域):
cat example.com.crt intermediate.crt > example.com.chained.crt
server_name example.com;
ssl_certificate /home/sammy/example.com.chained.crt;
ssl_certificate_key /home/sammy/example.com.key;
Run Code Online (Sandbox Code Playgroud)
我现在尝试启动Nginx时看到此错误:
须藤Nginx -t
nginx:[emerg] SSL_CTX_use_PrivateKey_file(“ / etc / nginx / ssl-certs / img.example.com.key”)失败(SSL:错误:0906D06C:PEM例程:PEM_read_bio:无起始行:预期:任何私钥错误: 140B0009:SSL例程:SSL_CTX_use_PrivateKey_file:PEM库)
有人知道为什么我会收到此错误吗?
谢谢菲尔
我一直在使用async.waterfall和nodejs.它工作得很好,但现在我对流量有疑问.
我想在async.waterfall流中使用一个简单的if条件.
async.waterfall([
callOne,
callTwo,
if(condition > 0 ) {
callTest1,
callTest2,
}else{
callTest3,
callTest4,
}
callThree,
callFour,
callFive,
], function (err, result) {
if (err) {
return res.status(400).jsonp({error: err});
}
});
Run Code Online (Sandbox Code Playgroud)
我只是想测试一个条件..
如果是条件是真的
然后运行一些功能
其他
运行其他功能.
万一
清理
我也在尝试这个...一个async.waterfall调用两个async.waterfall/s
router.post('/testUser', function (req, res, next) {
......
function validateAccount(callback) {
if (config.CHECK_EMAIL_MEMBER_ID > 0) {
async.waterfall([
callOne,
callTwo,
if(condition > 0 ) {
callTest1,
callTest2,
}else{
callTest3,
callTest4,
}
callThree,
callFour,
callFive,
], function (err, result) {
if (err) { …Run Code Online (Sandbox Code Playgroud) 我想使用Ionic 3离子列表(或Ionic 3中的所有功能)来显示水平列表,而不是典型的垂直列表。
寻找没有很多CSS或很难维护代码的解决方案。
<ion-content>
<ion-list >
<ion-item *ngFor="let data of dataArray" (click)="dataDetail(data)">
<ion-thumbnail item-left>
<img src="https://data.url.com/{{data.path}}{{data.photoName}}"/>
</ion-thumbnail>
<h2>{{data.name}}</h2>
<p>{{data.details}}</p>
</ion-item>
</ion-list>
</ion-content>
Run Code Online (Sandbox Code Playgroud)
任何帮助都非常感谢。
谢谢菲尔
我似乎遇到了本机插件的问题.
logPath:/Users/philipwilson/workspace/ionic/test2/platforms/ios/cordova/console.log
[21:12:05] console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
mode.
[21:12:05] console.log: Ionic Native: deviceready event fired after 542 ms
[21:12:05] console.warn: Native: tried calling Facebook.browserInit, but the Facebook plugin is not installed.
[21:12:05] console.warn: Install the Facebook plugin: 'ionic plugin add cordova-plugin-facebook4'
Run Code Online (Sandbox Code Playgroud)
我尝试过很多东西.
518 ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="99999999999" --variable APP_NAME="test2.com"
565 ionic cordova build ios
578 npm install --save @ionic-native/facebook
593 ionic plugin add cordova-plugin-facebook4
594 ionic cordova …Run Code Online (Sandbox Code Playgroud) ionic3 ×2
angular ×1
async.js ×1
asynchronous ×1
facebook ×1
ionic2 ×1
javascript ×1
nginx ×1
node.js ×1
ssl ×1