Redirecting to /bin/systemctl stop nginx.service 项目可以正常访问,图片不显示,图裂了

项目可以正常访问,图片不显示,图裂了

Redirecting to /bin/systemctl stop nginx.service

-------------------------------------------------------systemctl 启动----------------------------------------------------------------
在这里插入图片描述
1,查看服务是否启用:
ps -ef|grep nginx;

使用的是Centos 7系统,一些命令发生了变化。
2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:
  [root@S-CentOS home]# cat /etc/redhat-release
  在这里插入图片描述
3,用systemctl 启动关闭服务
–查看服务状态
systemctl status ngnix.service

–启动

systemctl start nginx.service

–停止

systemctl stop nginx.service

–重启

systemctl restart nginx.service

在这里插入图片描述
在这里插入图片描述

查询启动的服务
systemctl list-unit-files|grep enabled
–禁用服务
systemctl disable nginx.service
复制代码
–启用服务
systemctl enable nginx.service
复制代码

总结:目前遇到的图裂问题,重启nginx服务解决!

-----------------------------------------------service启动----------------------------------------------------------------------------
查看服务是否启用:ps -ef|grep nginx;
nginx启动命令:service nginx start

如果nginx启动不成功,处理方式如下:
查看selinux状态,命令:getenfoce,如果为enforcing状态,需要修改状态,命令为:setenfoce 0
,此时再查看selinux状态,命令:getenfoce,状态为permissive,即可启动nginx

在这里插入图片描述

nginx停止命令:service nginx stop
查看服务是否启用:ps -ef|grep redis;

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值