原文地址:http://www.2cto.com/os/201306/220559.html 我的一个Centos开机自启动脚本的制作 一.切换到/etc/init.d/ 二.制作sh脚本 vi andy.sh [plain] #!/bin/sh #add for chkconfig #chkconfig: 2345 70 30 #description: the description of the shell #关于脚本的简短描述 #processname
数据库和监听器开机自启动 编辑oratab文件: 修改:orcl:/u01/app/oracle/product/11.2.0/db_1:N orcl:/u01/app/oracle/product/11.2.0/db_1:Y [oracle@ocptest bin]$ vi /etc/oratab # # This file is used by ORACLE utilities. It is created by root.sh # and updated by t
CentOS 配置的开机自启动. vim /etc/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/lo
修改redis.conf,打开后台运行选项: # By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. daemonize yes 编写脚本,vim /etc/init.d/redis: # chkconfig: 2345 10 90 # descripti
1. 安装 下载并安装,注意安装方式为custom,路径自定义(d:\chengxu\mongodb),安装成功后在mongodb文件夹下新建data文件夹(内新建db文件夹)和logs文件夹(内新建mongodb.log文件) 2. 服务端连接 cmd窗口输入“d:\chengxu\mongodb\bin\mongod.exe --dbpath d:\chengxu\mongodb\data\db”.回车之后出现“waiting for connenctions on port 27017”即