Chinaunix

标题: 请教apache启动命令 [打印本页]

作者: chenlie39    时间: 2006-06-26 11:56
标题: 请教apache启动命令
本人之前是学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     
作者: chenlie39    时间: 2006-06-26 15:06
顶。不学会永不让沉!
作者: 秋风No.1    时间: 2006-06-26 15:21
自带的apache基本上不能用\r\n\r\n你还是自己编译安装吧\r\n\r\n既然玩过linux,编译个apache应该不是问题吧
作者: susbin    时间: 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
作者: chenlie39    时间: 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我去试下命令可否。
作者: nus    时间: 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
作者: chenlie39    时间: 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个玩?
作者: chenlie39    时间: 2006-06-28 08:35
敢问阁下: /etc/apache  与/etc/apache2 有何区别?\r\n为什么solaris 10要弄2个玩?
作者: chenlie39    时间: 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我也想知道。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2