1.检查 服务是否开启 chkconfig sshd on #检查sshd服务是否开启2.开启/重启服务service sshd start #开启服务service sshd restart #重启服务
分类:
系统相关 时间:
2014-07-16 21:13:22
阅读次数:
198
设置程序开机启动就是将程序的启动脚本添加到/etc/init.d目录下,或者将启动路径写入/etc/rc.d/rc.local文件里面.设置mysql开机启动cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql chk...
分类:
数据库 时间:
2014-07-16 18:41:09
阅读次数:
1427
Linux下chkconfig命令详解chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法:chkconfig [--add][--del][--list][系统服务] 或 chkcon...
分类:
其他好文 时间:
2014-07-16 18:04:22
阅读次数:
327
chkconfig命令详解chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法: chkconfig [--add][--del][--list][系统服务] 或 chkconfig [...
分类:
其他好文 时间:
2014-07-16 12:30:47
阅读次数:
1457
1、使用chkconfig--list来查看安装的服务,比如我这里最小化安装后的一些服务[root@squid103~]#chkconfig--listauditd0:off1:off2:on3:on4:on5:on6:offcrond0:off1:off2:on3:on4:on5:on6:offip6tables0:off1:off2:on3:on4:on5:on6:offiptables0:off1:off2:on3:on4:on5:on6:offl..
分类:
其他好文 时间:
2014-07-15 11:37:54
阅读次数:
344
1、安装启动memcached安装:yum -y install memcached启动:chkconfig --level 2345 memcached onservice memcached start查看状态:memcached-tool 127.0.0.1:11211 stats重要指标:c...
分类:
其他好文 时间:
2014-07-13 19:14:31
阅读次数:
218
关闭防火墙:
1:在Linux下面执行命令 service iptables stop
可以验证一下是否成功:使用命令service iptables status
不过有时当你重启的时候,防火墙可能会自动重启,你可以使用命令
1:chkconfig iptables off
2:chkconfig --list | grep iptables(检验是否关闭)...
分类:
系统相关 时间:
2014-07-13 15:58:19
阅读次数:
278
服务器环境,Centos6.51.安装Memcached服务端Yum -y install memcached2.配置Memcached服务端用户以及自动启动服务等将服务配置成自启动chkconfig--level2345memcachedon3.配置配置文件vi/etc/sysconfig/mem...
分类:
Web程序 时间:
2014-07-13 11:34:22
阅读次数:
220
centos开启和关闭防火墙命令(1)临时生效,重启后还原开启: # service iptables start关闭: # service iptables stop(2)永久性关闭,重启后不会还原开启: # chkconfig iptables on关闭: # chkconfig iptable...
分类:
其他好文 时间:
2014-07-12 00:25:32
阅读次数:
185
LVSIP:Eth0:192.168.100.115Eth1:192.168.100.215Vi/etc/init.d./lvs#!/bin/sh# # lvsStart lvs # # chkconfig: 2345 08 92 # description: Starts, stops and ....
分类:
其他好文 时间:
2014-07-10 15:54:54
阅读次数:
284