
Centos
文章平均质量分 53
Centos相关
SimonLiu009
半导体行业多年从业经历。现从事AIoT独立研发。
展开
-
centos yum 安装ffmpeg
centos7官方Yum源不包含ffmpeg的库,所以需要安装其他仓库来实现。如果是centos8,那么rpmfusion-free-release-7.noarch.rpm修改为rpmfusion-free-release-8.noarch.rpmsudo yum install -y #如果是centos8,下文的7改为8https://download1.rpmfusion.org/...原创 2020-04-21 10:24:59 · 1959 阅读 · 0 评论 -
CentOS编译安装emacs 25.3 错误 make: *** No targets specified and no makefile found. Stop.
今天在一台很久没有动过的vps上编译安装emacs 25.3时,遇到 make: *** No targets specified and no makefile found. Stop.错误其实解决起来很简单,就是需要先 yum update 一下。整个过程如下:yum updatecd /usr/loca/srcwget http://mirrors.ustc.edu.cn/gnu/em...原创 2018-05-24 21:45:13 · 1477 阅读 · 0 评论 -
centos 使用 mail 发送邮件
这是在解决mysql自动备份的时候需要做的,单独拿出来记录一下:首先163开通smtp/pop3并开通设置授权码centos主机上,运行如下命令安装sendmail。yum -y install sendmailsystemctl start sendmailyum install -y mailx下面使用emacs编辑器,所以就使用emacs作为例子了:emacs...原创 2018-11-29 22:56:04 · 564 阅读 · 0 评论 -
centos mysql 非正常关闭导致数据库损坏的恢复及开启自动邮件备份
昨天在进行网站用户维护的时候,发现网站无法登陆,发现是后台mysql没有启动。反复重启服务器无果,手动启动mysqlservice mysql start 提示Starting MySQL..The server quit without updating PID file (/usr/local/mysql/var/www.mydomain.com.pid).[FAILED]搜...原创 2018-11-29 22:35:27 · 4127 阅读 · 0 评论 -
centos证书登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic)错误的修复
centos证书登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic)错误有很多原因。具体情况需要具体分析。今天折腾centos服务器,遇到了证书登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic)错误,折腾很久以后发现,是因为修改了sshd配置文件(/et...原创 2018-12-16 19:16:28 · 6364 阅读 · 1 评论 -
禁止Centos系统 You have new mail in /var/spool/mail/root提示
Centos会在root输入命令的时候出现一行提示:You have new mail in /var/spool/mail/root该功能为Linux操作系统核对系统资源状态和(比如crontab脚本执行结果或者错误)的汇总,默认发送到root用户的/var/spool/mail/root目录,并在标准输出中提示如上的信息。使用 mail 命令可以查看这些信息[root@us...原创 2018-12-18 23:52:30 · 1458 阅读 · 0 评论 -
Job for iptables.service failed because the control process exit with error code 修复
Job for iptables.service failed because the control process exited with error code. See “systemctl status iptables.service” and “journalctl -xe” for details.今天设置mosh server打开UPD端口时遇到一个错误:#systemctl ...原创 2018-12-31 00:42:47 · 13978 阅读 · 3 评论 -
centos7 ping socket Address family not supported by protocol 错误修复
有一台vps最近突然发现有问题,然后在它上面 ping 10.0.0.2 的时候,报错如下:ping: socket: Address family not supported by protocol修复方法如下:降级yum downgrade http://vault.centos.org/7.2.1511/os/x86_64/Packages/iputils-20121221-7...原创 2019-01-17 23:50:06 · 6617 阅读 · 0 评论 -
百度云服务器BCC centos实例搭建vsftpd站点
本文基于百度云服务器BCC的centOS 7实例。参考资料:Linux实例搭建FTP站点_搭建FTP站点_建站教程_云服务器 ECS-阿里云一 安装vsftpd安装vsftpdyum install -y vsftpd 设置开机启动systemctl enable vsftpd.service启动ftp服务systemctl start vsftpd.service...原创 2019-06-28 15:02:18 · 1174 阅读 · 0 评论