我通过Azure安装了Neo4j HA。
我删除了数据库备份以替换graph.db文件夹。
但是,当我尝试运行neo4j start时,出现以下错误:
var peopleArr = [
person_1 = {
name: 'Nikita',
age: 89,
height: 164,
value: 0
},
person_2 = {
name: 'Pasha',
age: 28,
height: 164,
value: 0
},
person_3 = {
name: 'Olexey',
age: 29,
height: 164,
value: 0
}
];
function comparisonGame() {
var equals = [];
function compare(value_1, value_2) { // You don't really need this.
return value_1.value - value_2.value; // Calling .sort() will do the same
}
peopleArr.map(x => x.value = x.age * 5 + x.height);
peopleArr.sort(compare); // Can just call .sort()
if (peopleArr[0].value === peopleArr[1].value) {
return "It's a tie!";
} else {
return peopleArr[0].name + " is a winner";
}
}
console.log(comparisonGame());
// Set Olexy's age equal to Pasha's
// Remember the array is sorted, so [1] is Olexy now.
peopleArr[1].age = 28;
console.log(comparisonGame());
/usr/share/neo4j/bin/neo4j: line 396: /var/run/neo4j/neo4j.pid: No such file or directory
中没有名为neo4j
的文件夹。当Azure为您设置Neo4j时,是否应该自动创建?
使用var/run/
并不起作用,同样使用killall -9 java
。
我真的很想帮助这个!