码迷,mamicode.com
首页 >  
搜索关键字:chkconfig    ( 1438个结果
ubuntu设置服务开机启动
在Ubuntu下用sysv-rc-conf命令,它是chkconfig的替代命令,而使用方法与chkconfig基本相同。安装:sudo apt-get install sysv-rc-conf配置nginx开机启动sudo sysv-rc-conf nginx on检查nginx在各运行级别下是否...
分类:系统相关   时间:2014-12-27 20:23:22    阅读次数:149
[转]CentOS开机启动脚本
转载自http://www.2cto.com/os/201306/220559.html我的一个Centos开机自启动脚本的制作一、切换到/etc/init.d/二、制作sh脚本 vi andy.sh[plain]#!/bin/sh #add for chkconfig #chkconfig: 23...
分类:其他好文   时间:2014-12-26 20:16:29    阅读次数:209
Linux(CentOS 7.0)下Oracle11g R2安装CentOS7.0安装Oracle11gR2
// 注释 # root用户 $oracle用户1. 关闭安全措施# chkconfig iptables off // 永久关闭防火墙# serviceiptables stop // 暂时关闭防火墙,重启系统后会自动打开# sed -i "s/SELINUX=enforcing/SELINUX=...
分类:数据库   时间:2014-12-26 18:30:52    阅读次数:1451
chkconfig
参数用法:--add增加所指定的系统服务,让chkconfig指令得以管理它,并同时在系统启动的叙述文件内增加相关数据。--levellevelsname:设置某一服务在指定的运行级是被启动,停止还是重置。--list[name]:显示所有运行级系统服务的运行状态信息(on或off)等级0表示:表示关机等..
分类:其他好文   时间:2014-12-26 11:22:28    阅读次数:165
vsftpd环境下的创建本地yum源镜像
1.安装FTP软件#yuminstall-yvsftpd*安装FTP软件#servicevsftpdstart启动FTP服务#chkconfig--addvsftpd#chkconfigvsftpdon2.把redhat6.2的光盘挂载到服务器上,之后拷贝DVD中所有文件到本机ftp目录下#mount/dev/cdrom/mnt#mkdir-p/var/ftp/pub/rhel6/#cp-r/mnt/*/var/ftp/pub/rh..
分类:其他好文   时间:2014-12-22 19:46:19    阅读次数:232
iSCSI
IET cat /proc/net/iet/session 查看targetid 和target name对应关系 cat /proc/net/iet/volume 查看导出的lun和本机块设备对应关系 open-iscsi 查看服务状态 service iscsi status initiator 查看ISCSI启动状态 chkconfig iscsi on;...
分类:其他好文   时间:2014-12-22 19:39:14    阅读次数:211
linux下如何关闭防火墙?如何查看防火墙当前的状态
从配置菜单关闭防火墙是不起作用的,索性在安装的时候就不要装防火墙查看防火墙状态:/etc/init.d/iptablesstatus暂时关闭防火墙:/etc/init.d/iptablesstop禁止防火墙在系统启动时启动/sbin/chkconfig--level2345iptablesoff重启...
分类:系统相关   时间:2014-12-22 11:00:49    阅读次数:197
centos nginx,php添加到Service
SHELL脚本:nginxvim /etc/init.d/nginx#!/bin/sh## nginx - this script starts and stops the nginx daemin## chkconfig: - 85 15 # description: Nginx is an...
分类:Web程序   时间:2014-12-21 19:18:50    阅读次数:254
linux自定义服务
模仿/etc/rc.d/init.d下的任意一个文件的内容,写一个新的文件,名字和你的servicename的名字一样,然后执行chkconfig--addservicename执行成功后,编辑servicename文件,例如:#!/bin/bash #whoami #root #chkconfig:3455149 #description:startsthejbossdeamons # JBOSS_HOME=/..
分类:系统相关   时间:2014-12-18 06:52:42    阅读次数:270
centos开启VNC记录(总结)
再开启VNC开始前我们需要清楚3点1.我的centos目前的桌面版本为[root@localhost~]#gnome-panel--versionGnomegnome-panel2.16.12.vnc服务[root@localhost~]#rpm-qa|grepvncvnc-server-4.1.2-14.el5_3.13.自启动服务设置chkconfig好的,我们一步步来1.centos目前的桌面版本为2.vn..
分类:其他好文   时间:2014-12-15 21:59:34    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!