CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。firewall:systemctl start firewalld.service#启动firewallsystemctl stop firewalld.service#停止firewallsystemct...
分类:
其他好文 时间:
2015-08-29 06:09:02
阅读次数:
162
安装Mariadb数据库:sudo yum install mariadb-server启动数据库:sudo systemctl start mariadb设置自动启动:sudo systemctl enable mariadb安全配置:mysql_secure_installation登陆测试:m...
分类:
数据库 时间:
2015-08-26 22:06:47
阅读次数:
171
1,centos7 使用 systemctl 替换了 service命令 参考:redhat文档: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_wit...
分类:
其他好文 时间:
2015-08-18 16:51:38
阅读次数:
118
在linux的世界里,给主机设置固定ip是这么做的(使用root用户):
1.查看要配的网络接口
用ifconfig查看查看在用的网卡接口,一般都用第一个如:eth0,en1,em1等
2.停用网络自动配置(如果有的话)
systemctl stop NetworkManager.service
3.禁用网络自动配置(如果有的话)
systemctl disable Network...
分类:
其他好文 时间:
2015-08-08 15:00:11
阅读次数:
144
systemctl命令是系统服务管理器指令,它实际上将service和chkconfig这两个命令组合到一起。任务旧指令新指令使某服务自动启动chkconfig--level3httpdonsystemctlenablehttpd.service使某服务不自动启动chkconfig--level3httpdoffsystemctldisablehttpd.service检查服务状态serv..
分类:
其他好文 时间:
2015-08-07 11:29:58
阅读次数:
146
今天在Redhat7下面安装MySQL,接下来进行启动MySQL 启动结果如下: [root@localhost log]# service mysqld start Redirecting to /bin/systemctl start mysqld.service Job for mysqld....
分类:
数据库 时间:
2015-08-07 01:38:54
阅读次数:
1864
1、systemctl是RHEL 7 的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。可以使用它永久性或只在当前会话中启用/禁用服务。systemctl可以列出正在运行的服务状态,如图:systemd-cgls以树形列出正在运行的进程,它可以递归显示控制组内容。如图:2、如何启动/关闭、启用/禁用服务?启动一个服务:systemctl start postfi...
分类:
其他好文 时间:
2015-08-06 16:47:51
阅读次数:
221
以 apache/httpd 服务作为例子任务Red Hat/FedoraUbuntuUbuntu(with sysv-rc-conf or sysvconfig)立即启动/停止某服务service httpd startinvoke-rc.d apache startservice apache ...
分类:
系统相关 时间:
2015-08-06 00:09:49
阅读次数:
185
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 重启ssh:rcsshd restart开机启动ssh服务: systemctl enable sshd.ser....
分类:
其他好文 时间:
2015-08-03 00:54:53
阅读次数:
120
1.启用Apache2
Centos7默认已经安装httpd服务,只是没有启动。如果你需要全新安装,可以yum install -y httpd
启动服务:systemctl start httpd.service
设置开机自动启动:systemctl enable httpd.service
HTTP服务器已经启动,进行一下简单配置
vim /etc/httpd/conf/httpd....
分类:
数据库 时间:
2015-08-01 11:34:38
阅读次数:
260