-
LINUX开机自动启动apache. ftp
2016-09-14 00:41:49chkconfig httpd on 自动启动apache chkconfig vsftpd on 自动启动ftpchkconfig httpd on 自动启动apache
chkconfig vsftpd on 自动启动ftp
-
linux自启动apache
2013-08-09 09:19:17方法1: 由于linux版本的不同:自动启动的shell脚本放置的位置和名称也不相同,在redhat、红旗等版本的linux中启动脚本放在/etc/rc.d目录...例如:apache、mysql自动启动 在红旗、radhat等linux中如下 #cd /etc/r方法1:
由于linux版本的不同:自动启动的shell脚本放置的位置和名称也不相同,在redhat、红旗等版本的linux中启动脚本放在/etc/rc.d目录中,名称是:rc.local。而suse版本的linux启动脚本是放在/etc/init.d目录中,名称boot.local.
例如:apache、mysql自动启动
在红旗、radhat等linux中如下
#cd /etc/rc.d
#vi rc.local
在rc.local加入:
/usr/local/apache/bin/apachectl start
/usr/local/mysql/bin/mysqld_safe --user=mysql &
在suse中如下
#cd /etc/init.d
#vi boot.local
在boot.local加入:
/usr/local/apache/bin/apachectl start
/usr/local/mysql/bin/mysqld_safe --user=mysql &方法2:
在Linux系统中我一般采用编译源码的方式来安装Apache,有两种方法可以让Apache在系统启动时自动启动。
1. 在/etc/rc.d/rc.local中增加启动apache的命令,例如:/usr/local/httpd/bin/apachectl start
2. 将apache注册为系统服务
首先将apachectl命令拷贝至/etc/rc.d/init.d目录下,改名为httpd
使用编辑器打开httpd文件,并在第一行#!/bin/sh下增加两行文字如下
# chkconfig: 35 70 30
# description: Apache接着注册该服务
chkconfig --add httpd
一切OK了,启动服务
service httpd start
其中所增加的第二行中三个数字第一个表示在运行级别3和5下启动apache,第二、三是关于启动和停止的优先级配置,无关紧要。
-
linux下自动启动apache和gerrit
2013-03-14 17:33:11/usr/soft/apache/bin/apachectl start /usr/soft/gerrit/bin/gerrit.sh start ---------------下面的不好用 首先新建两个文件在目录/etc/rc.d/init.d ...编辑 /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
/usr/soft/apache/bin/apachectl start
/usr/soft/gerrit/bin/gerrit.sh start---------------下面的不好用
首先新建两个文件在目录/etc/rc.d/init.d
touch apache
touch gerrit
然后修改成可执行的
chmod 777 apache
chmod 777 gerrit
然后用vi编辑内容为:apache文件内容
chmod 777 apache
#!/bin/bash
#Start httpd service
/usr/soft/apache/bin/apachectl startgerrit文件内容:
#!/bin/bash
#Start httpd service
/usr/soft/gerrit/bin/gerrit.sh startchmod 777 apache -
Linux下禁止apache开机自动启动
2018-03-30 17:51:18由于我的Linux上同时安装了apache和nginx 每次开机时apache都会自动启动占用80端口 导致nginx无法启动方法一:chkconfig httpd off(实际上并不起作用)方法二:vim /etc/rc.d/rc.local 注释掉apache的自动启动脚本...由于我的Linux上同时安装了apache和nginx 每次开机时apache都会自动启动占用80端口 导致nginx无法启动
方法一:chkconfig httpd off(实际上并不起作用)
方法二:vim /etc/rc.d/rc.local 注释掉apache的自动启动脚本
这样apache就不会开机自启了
-
Linux下开机自动启动apache
2014-04-06 17:46:181.vi /etc/rc.d/rc.local 2./home/Zhangjia/Apps/apache/bin/apachectl start -
linux开启mysql apache_Linux下源码安装Apache+MySQL后自动启动设置
2021-01-19 07:26:42由于Linux版本的不同:自动启动的shell脚本放置的位置和名称也不相同,在RedHat、红旗等版本的linux中启动脚本放在 /etc/rc.d目录...例如:apache、MySQL自动启动在红旗、radhat等linux中如下#cd /etc/rc.d#vi rc.lo... -
linux下让apache自动启动
2012-01-08 13:43:46在Linux系统中我一般采用编译源码的方式来安装Apache ...有两种方法可以让Apache在系统启动时自动启动。 [size=large]一. 在/etc/rc.d/rc.local中增加启动apache的命令[/size] 例如:/usr/local/apa... -
Linux下设置apache自动启动
2009-06-12 22:56:36当我们安装好apache后需要将设置开启自动启动,因为生产环境中服务器一般会计划重启,如果不设置为开机自动启动,则需要管理员每次计划任务完成后手工启动,否则无法正常提供web服务。 linux下设置开机服务自动... -
Linux Apache 自动启动
2013-04-08 22:15:00#!/bin/sh # Detect Wep Server WEB=`/usr/bin/pgrep httpd` if [ "$WEB" != "" ] then echo "The Web Service is running"... /etc/rc.d/init.d/httpd st... -
Linux下apache自动启动设置
2012-04-07 18:21:22在Linux系统中一般采用编译源码的方式来安装apache,有两种方法可以让apache在系统启动时自动启动。 方法一:修改配置文件 配置文件路径:# vi /etc/rc.d/rc.local 在 /ect/rc.d/rc.local 文件中增加启动... -
linux下apache自动启动设置
2011-10-13 10:12:54在Linux系统中一般采用编译源码的方式来安装apache,有两种方法可以让apache在系统启动时自动启动。 方法一:修改配置文件 配置文件路径:# vi /etc/rc.d/rc.local 在 /ect/rc.d/rc.local -
suse mysql 自动启动脚本_linux自启动服务及配置apache,mysql等自启动的方法
2021-02-04 21:45:17方法1:由于linux版本的不同:自动启动的shell脚本放置的位置和名称也不相同,在redhat等版本的linux中启动脚本放在 /etc/rc.d目录中...例如:apache、mysql自动启动在redhat等linux中如下#cd /etc/rc.d#vi rc.loca... -
LINUX自动启动服务
2019-04-29 14:54:04linux自动启动服务很简单,最简单的是把启动命令放到/etc/rc.d/rc.local文件里这样就可以每次启动的时候自动启动服务了,例如对于 apache,编译好apache后会在安装目录的bin下生成apachectl文... -
安装配置apache-tomcat 随linux自动启动
2012-06-11 15:53:086.设置自动启动Tomcat 在Linux下,Tomcat可以作为一个守护进程来启动以及停止,这个必须借助于项目commons-daemon中的jsvc工具。Tomcat安装完后就带有这个工具的源码{tomcat}/bin/jsvc.tar.gz。按照下列命令安装这... -
linux下apache和tomcat 自动启动
2009-11-02 14:55:12在Linux系统中我一般采用编译源码的方式来安装Apache,有两种方法可以让Apache在系统启动时自动启动。 1. 在/etc/rc.d/rc.local中增加启动apache的命令,例如:/usr/local/httpd/bin/apachectl start 2. 将apache... -
开机自动启动apache 及相关自启动知识
2011-11-06 21:15:41开机自动启动apache 及相关自启动知识 2009-05-23 13:09:26|分类:Linux|字号订阅 update @ 2011/10/13: 开机自启动apache服务,用admin帐号 #vi /etc/rc.d/rc.local #su - admin -c "/usr/alibaba... -
Linux系统下修改Apache的自动启动
2013-07-06 10:21:50在Linux系统中一般采用编译源码的方式来安装apache,有两种方法可以让apache在系统启动时自动启动。 方法一:修改配置文件 配置文件路径:# vi /etc/rc.d/rc.local 在 /ect/rc.d/rc.local 文件中... -
apache在linux启动时自动启动
2009-02-24 17:42:00系统是AS5[root@localhost ~]# uname -aLinux localhost.localdomain 2.6.18-8.el5xen #1 SMP Fri Jan 26 14:29:35 EST 2007 x86_64 x86_64 x86_64 GNU/Linux下面是我用的几种方法1、在rc.local中增加启动语句。... -
linux自动启动程序
2013-07-11 10:17:00有两种方法可以让Apache在系统启动时自动启动 1. 在/etc/rc.d/rc.local中增加启动apache的命令,例如:/usr/local/httpd/bin/apachectl start 2. 将apache注册为系统服务 首先将apachectl命令拷贝至/etc/rc.d... -
Linux下ssl+apache开机自动启动脚本
2012-03-22 13:46:27linux下apach+ssl自动启动的脚本 a)配置apache启动时自动提取ssl_mod密码脚本 #cd /usr/local/apache2/conf/extra #cp httpd-ssl.conf httpd-ssl.conf.bak --做个备份 #vi /usr/local/apache2/conf/extra/... -
Linux自动启动服务
2010-09-23 13:08:06linux自动启动服务很简单,最简单的是把启动命令放到/etc/rc.d/rc.local文件里。这样就可以每次启动的时候自动启动服务了。例如对于 apache,编译好apache后会在安装目录的bin下生成apachectl文件,这是个启动脚本,... -
linux mysql开机启动命令行模式_linux centos设置开机启动Apache,Mysql方法
2021-02-01 08:38:31本文我们来讲解一下关于CentOS等Linux操作系统下,Apache,Mysql,Samba、Svn等服务开机自动启动的方法方法一:使用vi编辑器修改配置文件1、编辑rc.local文件:#vi /etc/rc.d/rc.local2、加入如下启动命令:/usr/sbin/...
-
Golang零基础-->高级编程
-
雷电模拟器_4.0.50.1.7z
-
龙芯实训平台应用实战(希云)
-
WorldMachine案例下载地址.txt
-
2021 PHP租车系统 毕业设计 毕设源码 源代码使用教程
-
有关高速信号和高速PCB理解误区,你中招了吗?
-
008神器0402版本等.zip
-
canal1.1.4相关配置及安装(下一篇配合kafka来实现同步数据到ES)
-
opencv多目标跟踪测试视频
-
nginx历程
-
concordion-logback-extension-demo:该项目演示了Concordion Logback扩展的用法-源码
-
字节对齐2种方式
-
阿里云ECS服务器的具体配置过程
-
C++11 14 17 20 多线程从原理到线程池实战
-
[005]节日庆典PPT模板[
-
基于Flink+Hudi构建企业亿级云上实时数据湖教程(PC、移动、小
-
光靠欺骗检测是不够的:对抗多目标跟踪的攻击
-
wsl下mount -o loop是出现的权限问题
-
Ubuntu安装工具篇
-
ELF视频教程