我第一次在 Fedora 24 中停止 nginx 服务器。我使用 apache 服务器进行开发。对于 onlyoffice 集成,我必须安装 nginx 服务器。我使用此命令安装了 nginx 服务器dnf install nginx
在启动 nginx 服务器之前,我停止了 apache 并禁用了它,如下所示。
\n\nsystemctl stop httpd\nsystemctl disable httpd\nRun Code Online (Sandbox Code Playgroud)\n\n如果我启动 nginx 服务器,sudo service nginx start我会收到以下错误。
Redirecting to /bin/systemctl start nginx.service\nJob for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.\nRun Code Online (Sandbox Code Playgroud)\n\n因此,我运行systemctl status nginx.service命令来了解问题详细信息,我在终端中得到了以下输出。
[root@localhost ~]# systemctl -l status nginx.service\n\xe2\x97\x8f nginx.service - The …Run Code Online (Sandbox Code Playgroud) 我正在学习AngularJS.所以我将在这里阅读AngularJS教程 - https://docs.angularjs.org/tutorial/step_07.当我在第7步时,我在使用angularjs $ http服务时遇到语法错误.这是我的应用程序目录结构和文件.
app/
phone-list/phone-list.component.js
phone-list/phone-list.module.js
phone-list/phone-list.template.html
app.module.js
phonelist.php
phonelist.json
Run Code Online (Sandbox Code Playgroud)
电话列表/电话list.component.js
angular.
module('phoneList').
component('phoneList', {
templateUrl: 'phone-list/phone-list.template.html',
controller: function PhoneListController($http) {
var self = this;
self.orderProp = 'age';
$http.get('phonelist.json').then(function(response) {
console.log(response);
self.phones = response.data;
});
}
});
Run Code Online (Sandbox Code Playgroud)
电话列表/电话list.module.js
angular.module('phoneList', []);
Run Code Online (Sandbox Code Playgroud)
电话列表/电话list.template.html
<p>Search: <input ng-model="$ctrl.query" /></p>
<p>
<select data-ng-model="$ctrl.orderProp">
<option value="name">Alphabetical</option>
<option value="age">Newest</option>
</select>
</p>
<ul>
<li data-ng-repeat="phone in $ctrl.phones | filter: $ctrl.query | orderBy: $ctrl.orderProp">
<span>{{phone.name}}</span>
<p>{{phone.snippet}}</p>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
app.module.js
angular.module('phoneCatApp', ['phoneList']);
Run Code Online (Sandbox Code Playgroud)
phonelist.php
<!DOCTYPE html>
<html>
<head> …Run Code Online (Sandbox Code Playgroud)