文章目录
1.安装php报错 make 没有指明目标并且找不到 makefile。 停止。
[root@localhost php-7.1.10]# make && make install make: *** 没有指明目标并且
执行make时出现这种错误, 即是 config.log的访问权限被拒绝
1.1 原因 1。没有执行 ./configure 所以没能生成makefile
解决方法:设置权限
chmod 777 config.log
sudo ./configure
然后
make && make install
2.启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat
2.1可能原因如下:
2.2.1.nginx启动有错误
运行下面命令查看修改
nginx -t
2.2.2.已经启动nginx或者配置文件中的端口号被占用
检查端口是否被占用
netstat -tnlp
2.2.3如果端口已经被占用,自己权衡一下是换个端口还是把占用端口的进程杀掉
pkill -9 nginx
检查nginx是否已经启动
ps -aux | grep nginx
如果已经启动使用下面命令干掉即可
pkill -9 nginx
2.2关闭,启动、查看状态
[root@localhost etc]# systemctl stop nginx
[root@localhost etc]# systemctl start nginx
[root@localhost etc]# systemctl status nginx
这样即为成功