linux:服务
来源:互联网 发布:linux空间 编辑:程序博客网 时间:2024/06/10 13:12
/etc/init.d 和/etc/rc.d/init.d 是启动脚本的位置,这两个目录是一样的
/etc/sysconfig 初始化环境配置文件位置
/etc 配置文件位置
/etc/xinetd.conf xinetd配置文件
/etc/xinetd.d/ 配置xinetd服务,这个服务是包含了子服务的,但是系统默认是没有安装的,可以通过
yum -y install xinetd 中安装,安装完毕了之后,chkconfig 可以显示xinetd服务,下面是chkconfig显示的xinetd服务的内容
wpa_supplicant 0:off 1:off2:off3:off4:off5:off6:off
xinetd 0:off1:off2:off3:on4:on5:on6:off
xinetd based services:
chargen-dgram: off
chargen-stream:off
daytime-dgram: off
daytime-stream:off
discard-dgram: off
discard-stream:off
echo-dgram: off
echo-stream: off
rsync: off
tcpmux-server: off
time-dgram: off
time-stream: off
telnet: off 当访问这个服务的时候,首先是访问xinetd服务,然后再访问telnet这个服务的,当然telnet服务也是不会默认安装的(yum -y install telnet-server)
xinetd服务是用得越来越少的,另外chkconfig telnet on 服务也会启动,同时
也会修改/etc/xinetd.d/telnet的配置文件,同理关闭也是
/var/lib 服务产生的数据放在这
/var/log 日志
独立服务一般是运行在内存中的服务,其服务名称可以立刻调用到
chkconfig --list 可以查询到服务的启动状态,但是无法查询到源码包安装的服务,只能管理独立服务或者RPM安装的服务
chkconfig 2345 httpd on 表示设置2 3 4 5级别下 httpd服务都启动
也可以修改/etc/rc.d/rc.local 文件即可,/etc/rc.local 是/etc/rc.d/rc.local的一个软连接,这个文件再登录密码输入密码之前都会调用这个文件的脚本
[root@localhost /]# ll /etc/rc.d/rc.local
-rwxr-xr-x. 1 root root 220 Oct 28 07:24 /etc/rc.d/rc.local
[root@localhost /]# ll /etc/rc.local
lrwxrwxrwx. 1 root root 13 Oct 28 07:17 /etc/rc.local -> rc.d/rc.local
root@localhost /]# cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local 为什么每次都会建立这个文件呢,这样每次重启都可以知道系统的启动时间
ntsysv 也可以设置服务启动,这个可以管理独立服务或者xinetd服务,但是不能管理源码包服务,但是这是红帽子系统提供的命令
service 也是红帽子提供的命令,service 也只管理独立服务或者xinetd服务,如果源码包需要service支持,就在/etc/rc.d/init.d 添加对应的源码包服务的脚本文件
- linux服务
- linux 服务
- linux 服务
- linux 服务
- linux服务
- linux:服务
- Linux服务
- linux服务
- linux 服务
- linux服务之telnet服务
- Linux服务软件
- linux的系统服务
- Linux服务设置方法
- Linux 后台服务进程
- Linux服务大全
- Linux下启停数据库服务
- Linux系统服务
- linux服务解释
- EJB学习(二)—在JBoss下开发、部署EJB
- maven的大致简介
- java 中遇到的一些异常
- Mysql安装问题
- 大学校园内使用桥接方式上网的虚拟机Linux无法ping通外网的原因
- linux:服务
- 数组
- leetcode | Search Insert Position
- 菜鸟猿大战java之线程深入接触
- ubuntu 15,04安装jdk
- 黑马程序员--面向对象(类、对象)
- Exported service does not require permission警告
- C++中函数作为形参传递
- 发现几个超棒的滚动动画延迟加载插件,超酷