摘要: CentOS7继承了RHEL 7的新的特性,例如强大的systemctl,而systemctl的使用也使得以往系统服务的/etc/init.d的启动脚本的方式就此改变,也大幅提高了系统服务的运行效率。但服务的配置和以往也发生了极大的不同,说实在的,变的简单而易用了许多。下面我们以利用forever来... 阅读全文
posted @ 2016-01-21 11:50 会打篮球的猪 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 指定安装路径。DESTDIR=/whereto make install 阅读全文
posted @ 2016-01-21 11:34 会打篮球的猪 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 首先通过 rpm -q 可以查询到rpm包的名字然后 调用 rpm -e 删除特定rpm包如果遇到依赖,无法删除,使用 rpm -e --nodeps 不检查依赖,直接删除rpm包如果恰好有多个包叫同样的名字,使用 rpm -e --allmatches --nodeps 删除所有相同名字的包... 阅读全文
posted @ 2016-01-21 11:33 会打篮球的猪 阅读(244) 评论(0) 推荐(0) 编辑
摘要: CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下1、直接关闭防火墙systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机... 阅读全文
posted @ 2016-01-21 11:33 会打篮球的猪 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 在使用 Centos 之前用的更多是Ubuntu,所以在useradd 和 adduser 两条命令出现歧义,在Ubuntu系统上这是两条命令,而在Centos上则是同一条命令,adduser 是链接的形式存在# ll /usr/sbin/ | grep user lrwxrwxrwx. 1 ro... 阅读全文
posted @ 2016-01-21 11:30 会打篮球的猪 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 准备命令:yum -y install gcc make gcc-c++ openssl-devel wget下载源码及解压:wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gztar -zvxf node-v0.10.26.tar.gz... 阅读全文
posted @ 2016-01-21 11:28 会打篮球的猪 阅读(137) 评论(0) 推荐(0) 编辑
摘要: CentOS7自带MariaDB,将其删掉rpm -qa | grep mariadbrpm -e mariadb-libs-5.5.37-1.el7_0.x86_64rpm -e --nodeps mariadb-libs-5.5.37-1.el7_0.x86_641.下载源码wget http:... 阅读全文
posted @ 2016-01-21 11:20 会打篮球的猪 阅读(219) 评论(0) 推荐(0) 编辑