一、服务的分类1.rpm安装包的服务2.源码包安装的服务二、查看服务rpm安装的服务可以通过 chkconfig -list 查看, rpm安装的服务分 "独立服务" 和 "xinetd服务"源码包安装的服务需要到安装目录下手动查看三、独立服务的启动1. /etc/init.d/httpd (sta...
分类:
其他好文 时间:
2015-07-04 12:39:57
阅读次数:
132
cornd 是定时任务的守护进程 这个服务系统是默认启动的[root@localhost/]#/etc/init.d/crond strat|restart|stop[root@localhost/]#chkconfig crond on命令介绍:[root@localhost/]#crontab ...
分类:
系统相关 时间:
2015-06-30 20:21:20
阅读次数:
203
#!/bin/sh##nginx-thisscriptstartsandstopsthenginxdaemin##chkconfig:-8515#description:NginxisanHTTP(S)server,HTTP(S)reverse\#proxyandIMAP/POP3proxyserver#processname:nginx#config:/usr/local/nginx/conf/nginx.conf#pidfile:/usr/local/nginx/logs/nginx.pid#Source..
分类:
其他好文 时间:
2015-06-30 18:41:32
阅读次数:
132
服务安装类型主要分两种:RPM安装和源码包编译安装:1.RPM包查看: rpm -qa | grep 包名 用chkconfig --list 查看服务自启动命令 只对RPM包安装的服务生效 源码包未必生效 ps -aux (查看系统当中所有启动的进程) ps aux | grep 服务名 如...
分类:
系统相关 时间:
2015-06-30 12:37:06
阅读次数:
649
在/etc/init.d/* 中的各服务文件开始处都会出现以下一行的相似字符,在此进行解释一下:# chkconfig: 345 85 15345代表的是设置在那个level中是on的,如果希望全部off, 则使用- , #chkconfig: - 85 1585是启动顺序号15是关闭顺序号
分类:
其他好文 时间:
2015-06-30 12:10:15
阅读次数:
143
Linux关闭防火墙命令1) 永久性生效,重启后不会复原开启:chkconfig iptables on关闭:chkconfig iptables off2) 即时生效,重启后复原开启:service iptables start关闭:service iptables stop
分类:
系统相关 时间:
2015-06-29 16:15:51
阅读次数:
116
CentOS下yum安装LAMP
1. 用yum安装Apache,Mysql,PHP.
1.1安装Apache
yum install httpd httpd-devel
安装完成后,用/etc/init.d/httpd start 启动apache
设为开机启动:chkconfig httpd on
1.2 安装mysql
1.2.1 yum install ...
分类:
其他好文 时间:
2015-06-28 11:18:24
阅读次数:
161
需求:需要把A服务器上的某些数据定期备份到B服务器中A服务器:#yuminstall-yrsync#rpm-qa|greprsync#vim/etc/xinetd.d/rsyncyes改成no,开启rsync#chkconfigrsyncon#chkconfig--listrsync生成配置文件#vim/etc/rsyncd.confuid=rootgid=rootport=873默认端口873hostsallow=10.10..
分类:
其他好文 时间:
2015-06-25 17:48:00
阅读次数:
89
sysv-rc-conf设置ubuntu开机自启动 ? ? sudo apt-get install sysv-rc-conf ? ? sysv-rc-conf是一个强大的服务管理程序,群众的意见是sysv-rc-conf比chkconfig好用。 ? ? 运行:#sudo sysv-rc-conf ? ?...
分类:
系统相关 时间:
2015-06-25 12:36:56
阅读次数:
173
#director端脚本
#cat/etc/init.d/ipvs
#!/bin/bash
#
#LVSservicescript
#chkconfig:-9010
./etc/rc.d/init.d/functions
#
VIP=172.16.100.100
DIP=172.16.100.10
RIP1=172.16.100.11
RIP2=172.16.100.12
PORT=80
RSWEIGHT1=1
RSWEIGHT2=2
LOCKFILE=/var/lock/subsys/ipvsad..
分类:
其他好文 时间:
2015-06-24 19:16:53
阅读次数:
131