免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7631 | 回复: 8
打印 上一主题 下一主题

请教apache启动命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-26 11:56 |只看该作者 |倒序浏览
本人之前是学redhat的,工作需要研究solaris , 发现2者区别好大。\r\n\r\n很多命令都不清楚。安装程序也常出问题,发几次不同帖子询问过大家,让我受益非浅,再此感谢大家。\r\n\r\n\r\n由于本人在solaris10中 编译安装还存在问题,所以本机APACHE是随着安装光盘一同安装的,安装后发现,好多文件夹下面都有Apache  与 Apache2文件夹,所以晕了。\r\n\r\n请教问题1: 主配置文件是在 /etc/apache2中吗?  如果不是请纠正。\r\n\r\n    问题2: 输入什么命令可以 启动/停止/重启  apache 服务器 ?\r\n    \r\n    问题3: 请教在linux中使用netstat -ant 查看开启的所有tcp端口,如何在unix中使用该相同命令呢 ? 我英文不好,所以请不要让我 man     

论坛徽章:
0
2 [报告]
发表于 2006-06-26 15:06 |只看该作者
顶。不学会永不让沉!

论坛徽章:
0
3 [报告]
发表于 2006-06-26 15:21 |只看该作者
自带的apache基本上不能用\r\n\r\n你还是自己编译安装吧\r\n\r\n既然玩过linux,编译个apache应该不是问题吧

论坛徽章:
0
4 [报告]
发表于 2006-06-26 19:08 |只看该作者
问题2: 输入什么命令可以 启动/停止/重启  apache 服务器 ?\r\nRun this command to find out where the Apache is installed:\r\n# find / -name apachectl -print\r\nor \r\n# find / -name httpd -print\r\n\r\nYou usually can start/stop/restart an Apache with a command like this one:\r\n# /usr/local/apache-2.0.54/bin/apachectl [start] [stop] [restart]\r\n\r\n\r\n    问题3: 请教在linux中使用netstat -ant 查看开启的所有tcp端口\r\nPlease try\r\n# netstat -an

论坛徽章:
0
5 [报告]
发表于 2006-06-27 08:39 |只看该作者
原帖由 susbin 于 2006-6-26 19:08 发表\r\n问题2: 输入什么命令可以 启动/停止/重启  apache 服务器 ?\r\nRun this command to find out where the Apache is installed:\r\n# find / -name apachectl -print\r\nor \r\n# find / -name httpd -print\r\n\r\nYou usua ...
\r\n\r\n\r\n您的回复对我非常有用,谢谢。\r\n\r\n我去试下命令可否。

论坛徽章:
0
6 [报告]
发表于 2006-06-27 08:51 |只看该作者
Solaris10 缺省安装了2个apache, apache1.x和以前8/9的启动一样,但apache2需要新方法启动\r\n\r\n# svcprop -v -p start apache2\r\n\r\nstart/exec astring /lib/svc/method/http-apache2 start\r\n\r\nstart/timeout_seconds count 60\r\n\r\nstart/type astring method\r\n\r\nstart/user astring webservd\r\n\r\nstart/group astring webservd\r\n\r\nstart/privileges astring \r\n\r\nbasic,!proc_session,!proc_info,!file_link_any,net_privaddr\r\n\r\nstart/limit_privileges astring :default\r\n\r\nstart/use_profile boolean false\r\n\r\nstart/supp_groups astring :default\r\n\r\nstart/working_directory astring :default\r\n\r\nstart/project astring :default\r\n\r\nstart/resource_pool astring :default\r\n\r\n<!--[if !supportEmptyParas]--> <!--[endif]-->\r\n\r\n#cp /etc/apache2/httpd.conf.sample /etc/apache2/httpd.conf\r\n\r\n#svcadm enable apache2\r\n\r\n#svcs –l apache2

论坛徽章:
0
7 [报告]
发表于 2006-06-27 11:21 |只看该作者
原帖由 nus 于 2006-6-27 08:51 发表\r\nSolaris10 缺省安装了2个apache, apache1.x和以前8/9的启动一样,但apache2需要新方法启动\r\n\r\n# svcprop -v -p start apache2\r\n\r\nstart/exec astring /lib/svc/method/http-apache2 start\r\n\r\nstart/timeout_secon ...
\r\n\r\n多谢,又学到新东西了。\r\n\r\n敢问阁下: /etc/apache  与/etc/apache2 有何区别?\r\n为什么solaris 10要弄2个玩?

论坛徽章:
0
8 [报告]
发表于 2006-06-28 08:35 |只看该作者
敢问阁下: /etc/apache  与/etc/apache2 有何区别?\r\n为什么solaris 10要弄2个玩?

论坛徽章:
0
9 [报告]
发表于 2006-07-01 15:53 |只看该作者
原帖由 chenlie39 于 2006-6-28 08:35 发表\r\n敢问阁下: /etc/apache  与/etc/apache2 有何区别?\r\n为什么solaris 10要弄2个玩?
\r\n\r\n\r\n我也想知道。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP