惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

博客园 - 墨尘

xmlhttp的OnReadyStateChange事件 简单的mysql热备 技术之路也要懂得理财-------林左鸣:建设军工强国的5条锦囊妙计 magento迁移后后台无法登录解决方法 Android实用工具Hierarchy Viewer实战 SEO如何做有效的外链 加勒比海盗主题曲 小提琴版 apache 编译 rewrite 模块 linux 下php扩展模块的单独编译 javascript中的对象 - 墨尘 - 博客园 混迹于威客 SQL 2005数据类型说明 转帖:PL/SQL 格式化指南 (PL/SQL Formatting Guide) 简述在Access中使用“存储过程” 趋势投资十种有效工具 关于临界点类型算数问题的分析 逻辑推理 应该在别人恐惧时贪婪吗? 404错误!
转帖:linux 下注册apache开机自启动
墨尘 · 2011-06-19 · via 博客园 - 墨尘

随着客户的不断增加,近一两年已经很少上园子里转悠了,技术是件需要不断重温,反复学习的事情,刚才无意间看到这篇贴就转过来重写学习学习。原帖地址

方法一:修改配置文件
      配置文件路径:# vi /etc/rc.d/rc.local
      在 /ect/rc.d/rc.local 文件中增加启动apache的命令,如下:
      /usr/local/webserver/apache/bin/apachectl start

方法二:将apache注册为系统服务
      1、首先将apachectl命令拷贝到 /etc/init.d 目录下,改名为 httpd;
      2、使用编辑器打开 httpd 文件,并在第一行 #!/bin/sh 下增加两行文字,如下:
         # chkconfig: 35 70 30
         # description: Apache
      3、接着注册该服务
         # chkconfig --add httpd
      一切OK了,启动服务
         # service httpd start
      其中,所增加的第二行中三个数字,第一个表示在运行级别3和5下启动apache,第二、三是关于启动和停止的优先级配置,无关紧要。

第三种:图形化
      在终端控制台中使用 ntsysv 命令调出启动菜单图形化配置控制台,利用键盘的方向键选中httpd,单击“确定”即可。(其他需要自动启动的服务也可以使用这种方式修改,如 mysql、network等)