项目可以正常访问,图片不显示,图裂了
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;