Centos系统服务脚本目录:/usr/lib/systemd/有系统(system)和用户(user)之分,如需要开机没有登陆情况下就能运行的程序,存在系统服务(system)里,即:/lib/systemd/system/反之,用户登录后才能运行的程序,存在用户(user)里服务以.service结尾。这边以nginx开机运行..
分类:
其他好文 时间:
2016-09-06 01:29:06
阅读次数:
134
1 systemd是什么 首先systmed是一个用户空间的程序,属于应用程序,不属于Linux内核范畴,Linux内核的主要特征在所有发行版中是统一的,厂商可以自由改变的是用户空间的应用程序。 Linux 内核加载启动后,用户空间的第一个进程就是初始化进程,这个程序的物理文件约定位于/sbin/i ...
分类:
其他好文 时间:
2016-09-05 12:22:50
阅读次数:
203
redis安装,启动服务,开机启动,打开redis客户端 yum install -y redis systemctl start redis systemctl enable redis redis-cli 安装phpredis pecl install redis-2.2.3 extension ...
分类:
Web程序 时间:
2016-09-03 15:05:46
阅读次数:
204
启动 systemctl start firewalld 停止 systemctl stop firewalld 获取 firewalld 状态 firewall-cmd --state 在不改变状态的条件下重新加载防火墙 firewall-cmd --reload **如果你使用–complete ...
分类:
其他好文 时间:
2016-09-01 11:07:58
阅读次数:
212
sudo apt-get update #更新系统 sudo apt-get install vsftpd #安装vsftpd sudo systemctl status vsftpd #判断vsftpd是否安装成功 终端输出结果中active (running)一般会是高亮的绿色。 sudo mk... ...
分类:
系统相关 时间:
2016-08-31 13:52:06
阅读次数:
236
Apache2 Web 服务器的安装 sudo apt install apache2 -y 当安装Apache2包之后,Apache2相关的服务是启用的,并在重启后自动运行。在某些情况下如果你的Apache2服务器没有自动运行和启用,可以输入以下命令来启动它。 sudo systemctl sta... ...
分类:
Web程序 时间:
2016-08-31 13:39:50
阅读次数:
151
http://hongge.blog.51cto.com/centos7.2安装mysql5.7.13一、MySQL5.7主要特性:原生支持Systemd更好的性能:对于多核CPU、固态硬盘、锁有着更好的优化更好的InnoDB存储引擎更为健壮的复制功能:复制带来了数据完全不丢失的方案,传统金融客户也可以选择使用MySQL数据库。新增s..
分类:
数据库 时间:
2016-08-30 16:15:54
阅读次数:
303
centos7.2上安装和配置vncserver 关闭防火墙centos的防火墙是firewalld,关闭防火墙的命令[root@localhost ~]# systemctl stop firewalld.service #停止firewall[root@localhost ~]# systemc ...
分类:
其他好文 时间:
2016-08-30 12:17:14
阅读次数:
1204
( 追答 改成iptablesfirewall:systemctl start iptables.service 追答 改成iptablesfirewall:systemctl start iptables.service 追答 改成iptablesfirewall:systemctl start ...
分类:
数据库 时间:
2016-08-29 17:40:57
阅读次数:
159
1 apache安装 # yum -yinstall httpd //安装httpd会自动安装以下的依赖包: apr apr-util httpd-tools mailcap # rpm -qi httpd 2 设置开机启动 //设置为自动启动 # systemctl enable httpd.se ...
分类:
Web程序 时间:
2016-08-28 12:39:39
阅读次数:
531