前几天,公司要配置一个linux+resin+jdk环境发布程序,开发想使用80端口来发布,同时想使用普通用户xxx来启动服务/usr/local/resin/bin/httpd.sh,结果无法绑定80,程序起来后80端口没有监听,查看日志/usr/local/resin/log/stdout.log出现permission deny无法绑定80的提示,但使用root来启动就没有问题,后来上网一查,发现只有root才能使用1024以下端口来发布程序,普通用户是没有权利的。 本文来自ChinaUnix博客,如果查看...
by zhaoyingfei - Linux文档专区 - 2008-12-16 10:50:43 阅读(1367) 回复(0)
翻译:越活越明白 resin.sh 最简单的方式启动linux下的resin,是要修改您的resin.sh ,并建立符号连结在/etc/rc.d/rc3.d和/ etc/rc.d/rc5.d 。由于启动过程中未设置环境变量,您需要在resin.sh设置它们。 1.在resin/bin下复制 resin.sh 文件为 resin-a.sh 并改变权限. 2.在resin-a.sh中配置 JAVA_HOME, resin_HOME, PATH 和 "-pid". 3.检查"resin-a.sh start" 和 "resin-a.sh stop" 用root通过命令行运行看是否可用. 4.ln -s /u...
Mandriva2006 ,tomcat-5.5.16 tomcat默认的8080端口,普通用户启动了可以访问。 http://localhost:8080/ server.xml中我把它改成80.但是普通用户启动了却不能访问。 http://localhost:80/ su 换成root用户后,再启动,就可以访问了。怎么设置?
在linux系统中我一般采用编译源码的方式来安装Apache,有两种方法可以让Apache在系统启动时自动启动。 1. 在/etc/rc.d/rc.local中增加启动apache的命令,例如:/usr/local/httpd/bin/apachectl start 2. 将apache注册为系统服务 首先将apachectl命令拷贝至/etc/rc.d/init.d目录下,改名为apache 使用编辑器打开apache文件,并在第一行#!/bin/sh下增加两行文字如下 # chkconfig: 35 70 30 # description: Apache 接着注册该服务 ch...
http://www.chedong.com/tech/resin.html 作者: 车东 chedong@bigfoot.com 版权声明:可以任意转载,转载时请务必标明原始出处和作者信息 内容摘要: 将resin-version/contrib/init.resin.in复制到/etc/rc.d/init.d/resin 修改resin中的一些设置:JAVA_HOME resin_HOME USER 等 用/sbin/chkconfig resin on将resin服务在启动级别345设置成自启动 在慢速CPU的机器上启动时,需要加入一个15秒的延时帮助JAVA启动 我最习惯的设...
[root@back bin]# ./httpd.sh start perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = "zh", LANG = "zh" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 请教大家了!
[root@back bin]# ./httpd.sh start perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = "zh", LANG = "zh" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 请教大家了!
各位,resin能用resin启动吗,在线等。
ps -aux|grep resin
看到启动用户都是root,当然我是root起的。
可是配置文件里改成