雅虎新闻|| BBC新闻|| CNN新闻|| 美元指数|| 中国期货指数|| 股票指数|| 黄金|| 外汇|| 英汉互译|| 昭放工具
163邮箱|| 126邮箱|| 新浪邮箱|| 企业邮箱|| 21cn邮箱|| tom邮箱|| 搜狐邮箱|| hotmail邮箱|| msn邮箱|| qq邮箱

用户登录

设为主页| 淘宝铺| 加入收藏|
您的IP:3.144.31.17您的操作系统:Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
个人便签
知识库
启动nginx出现错误

[root@localhost ~]# service nginx start

Redirecting to /bin/systemctl start  nginx.service

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

 

cd /etc/sysconfig/network-scripts/

修改网卡

BOOTPROTO=static

IPADDR=10.1.3.43

NETMASK=255.255.255.0

GATEWAY=10.1.1.254

DNS=114.114.114.114

NM_CONTROLLED=no

……

ONBOOT=yes

 

service network restart

vi /etc/selinux/config

将SELINUX=enforcing改为SELINUX=disabled

setenforce 0

systemctl stop firewalld.service

systemctl disable firewalld.service

 

nginx -t

nginx -s stop

systemctl start nginx.service

nginx -s reload

均成功

星期二, 02/04/2020 - 13:05 — 杨超