免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-26 11:56 |只看该作者 |倒序浏览
本人之前是学redhat的,工作需要研究solaris , 发现2者区别好大。

很多命令都不清楚。安装程序也常出问题,发几次不同帖子询问过大家,让我受益非浅,再此感谢大家。


由于本人在solaris10中 编译安装还存在问题,所以本机APACHE是随着安装光盘一同安装的,安装后发现,好多文件夹下面都有Apache  与 Apache2文件夹,所以晕了。

请教问题1: 主配置文件是在 /etc/apache2中吗?  如果不是请纠正。

    问题2: 输入什么命令可以 启动/停止/重启  apache 服务器 ?
   
    问题3: 请教在linux中使用netstat -ant 查看开启的所有tcp端口,如何在unix中使用该相同命令呢 ? 我英文不好,所以请不要让我 man     

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

论坛徽章:
0
3 [报告]
发表于 2006-06-26 15:21 |只看该作者
自带的apache基本上不能用

你还是自己编译安装吧

既然玩过linux,编译个apache应该不是问题吧

论坛徽章:
0
4 [报告]
发表于 2006-06-26 17:05 |只看该作者
我也向编译安装呀, 可是在SOLARIS10 下面编译安装出问题。

make出问题
问题请看:http://bbs.chinaunix.net/viewthr ... p;extra=#pid5370110

论坛徽章:
0
5 [报告]
发表于 2006-06-26 19:08 |只看该作者
问题2: 输入什么命令可以 启动/停止/重启  apache 服务器 ?
Run this command to find out where the Apache is installed:
# find / -name apachectl -print
or
# find / -name httpd -print

You usually can start/stop/restart an Apache with a command like this one:
# /usr/local/apache-2.0.54/bin/apachectl [start] [stop] [restart]


    问题3: 请教在linux中使用netstat -ant 查看开启的所有tcp端口
Please try
# netstat -an

论坛徽章:
0
6 [报告]
发表于 2006-06-27 08:39 |只看该作者
原帖由 susbin 于 2006-6-26 19:08 发表
问题2: 输入什么命令可以 启动/停止/重启  apache 服务器 ?
Run this command to find out where the Apache is installed:
# find / -name apachectl -print
or
# find / -name httpd -print

You usua ...



您的回复对我非常有用,谢谢。

我去试下命令可否。

论坛徽章:
0
7 [报告]
发表于 2006-06-27 08:51 |只看该作者
Solaris10 缺省安装了2个apache, apache1.x和以前8/9的启动一样,但apache2需要新方法启动

# svcprop -v -p start apache2

start/exec astring /lib/svc/method/http-apache2 start

start/timeout_seconds count 60

start/type astring method

start/user astring webservd

start/group astring webservd

start/privileges astring

basic,!proc_session,!proc_info,!file_link_any,net_privaddr

start/limit_privileges astring :default

start/use_profile boolean false

start/supp_groups astring :default

start/working_directory astring :default

start/project astring :default

start/resource_pool astring :default

<!--[if !supportEmptyParas]--> <!--[endif]-->

#cp /etc/apache2/httpd.conf.sample /etc/apache2/httpd.conf

#svcadm enable apache2

#svcs –l apache2

论坛徽章:
0
8 [报告]
发表于 2006-06-27 11:21 |只看该作者
原帖由 nus 于 2006-6-27 08:51 发表
Solaris10 缺省安装了2个apache, apache1.x和以前8/9的启动一样,但apache2需要新方法启动

# svcprop -v -p start apache2

start/exec astring /lib/svc/method/http-apache2 start

start/timeout_secon ...


多谢,又学到新东西了。

敢问阁下: /etc/apache  与/etc/apache2 有何区别?
为什么solaris 10要弄2个玩?

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

论坛徽章:
0
10 [报告]
发表于 2006-07-01 15:53 |只看该作者
原帖由 chenlie39 于 2006-6-28 08:35 发表
敢问阁下: /etc/apache  与/etc/apache2 有何区别?
为什么solaris 10要弄2个玩?



我也想知道。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP