Linux安装软件和配置时候的坑
Linux本机软件管理rpm
RPM软件管理器:rpm
Linux在线安装/升级机制yum
yum的配置文件
yum安装nginx:https://blog.csdn.net/trokey/article/details/84908838
启动nginx并绑定DNS和域名:https://blog.csdn.net/hust_cxl/article/details/80019074
install wordpress,PHP,MySQL:https://zhuanlan.zhihu.com/p/72713868?utm_source=wechat_session&utm_medium=social&utm_oi=980324076468023296
vi的使用:https://blog.csdn.net/hongkangwl/article/details/16869243
yum的软件群组功能
Linux日志文件
CentOS 7日志文件:https://blog.csdn.net/qq_34889607/article/details/78649115
rsyslog的设置与运行:https://www.cnblogs.com/zengkefu/p/5606875.html
systemd-journald.service:https://www.cnblogs.com/uetucci/p/7767759.html
通过logwatch分析日志文件:http://seanlook.com/2014/08/23/linux-logwatch-usage/
服务管理与系统启动流程管理
通过kill命令与信号来管理进程
systemd
systemctl管理服务的启动与关闭
systemctl列出系统服务
systemctl获取与切换默认操作界面
网络服务管理
netstat 安装:https://www.jianshu.com/p/c39595e0a9c1
坑
问题:mysql多行命令中途输入错误如何退出
https://zhidao.baidu.com/question/128627653.html?qbl=relate_question_3&word=mysql%3E%20%B6%E0%D0%D0%B1%E0%BC%AD
问题:bash: syntax error near unexpected token `;&'
https://stackoverflow.com/questions/35567949/bash-syntax-error-near-unexpected-token
问题: nginx: [emerg] unknown directive “ ” in /usr/local/nginx/conf/vhost/XXX.conf:53报错处理
https://www.cnblogs.com/rsky/p/4886043.html
问题: sudo /opt/nginx/sbin/nginx
报错信息
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
定位方法
1.先使用ps -e | grep nginx查看是否已经启动了nginx
2.如果没有的话则按照提示,查看0.0.0.0:80端口谁占用了,使用netstat -ltunp命令,可以看到
可以看到0.0.0.0:80端口被httpd这个进程占用了(也就是apcache占用)