首页| 新闻| 娱乐| 游戏| 科普| 文学| 编程| 系统| 数据库| 建站| 学院| 产品| 网管| 维修| 办公| 热点
# cd webmin*# ./setup.sh
/etc/profilejava_home=/usr/java/j2sdk1.4.2_04classpath=.:/lib:/jre/libcvsroot=/usr/local/cvsrootpath=.:/bin:/jre/bin:export java_home classpath cvsroot path/etc/ld.so.conf/usr/java/j2sdk1.4.2_04/jre/lib/i386/usr/java/j2sdk1.4.2_04/jre/lib/i386/serverhelloworld.javaclass helloworld {public static void main(string[] args){//本文件测试java环境是否安装成功。system.out.println("hello world!");}}
# rpm -ivh j2sdk*.rpm //安装jdk包。# source /etc/profile //重载profile环境。# ldconfig //创建动态链接库缓存文件。# javac -d . helloworld.java //编译测试文件。# java helloworld //运行程序测试安装是否成功。
# tar xvzf httpd* //解压源码包。 # cd httpd* //进入安装目录。# ./configure --prefix=/usr/local/apache --enable-so --enable-mods-shared=most --enable-rewrite# make;make install //编译并安装。
#tar xvzf php* //解压源码包#cd php* //进入php安装命令#./configure --prefix=/usr/local/php --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --with-java=/usr/java/j2sdk1.4.2_04#make;make install //编译并安装#cp php.ini-dist /usr/local/php/lib/php.ini //复制php配置文件#cd /usr/local/php/lib/php/extensions/no-debug-non-zts-20020429 //extensions目录#ln -s java.so libphp_java.so //建立连接,忘记了会出错哦#cd zend* //进入zendoptimizer目录#./install //安装php加速器
/usr/local/apache/conf/httpd.confloadmodule php4_module modules/libphp4.soaddtype application/x-httpd-php .phpaddtype application/x-httpd-php-source .phpsadddefaultcharset gb2312/usr/local/apache/htdocs/test.php <?php//本程序测试php的java环境是否可用,代码是从http://www.php.net/manual/en/ref.java.php摘录下来的。// get instance of java class java.lang.system in php = new java('java.lang.system');// demonstrate property accessecho 'java version=' . ->getproperty('java.version') . '<br />';echo 'java vendor=' . ->getproperty('java.vendor') . '<br />';echo 'os=' . ->getproperty('os.name') . ' ' .->getproperty('os.version') . ' on ' .->getproperty('os.arch') . ' <br />';// java.util.date example = new java('java.text.simpledateformat',"eeee, mmmm dd, yyyy 'at' h:mm:ss a zzzz");echo ->format(new java('java.util.date'));?>/usr/local/php/lib/php.iniregister_globals=on[java] java.class.path=/usr/local/php/lib/php/php_java.jar:/home/jim/myclassjava.home=/usr/java/j2sdk1.4.2_04java.library=/usr/java/j2sdk1.4.2_04/jre/lib/i386/libjava.sojava.library.path=/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429extension_dir=/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429extension=libphp_java.so
/usr/local/apache/conf/httpd.confloadmodule jk2_module modules/mod_jk2.sojkset config.file /usr/local/apache/conf/workers2.propertiesdocumentroot "/usr/local/tomcat/webapps"<directory "/usr/local/tomcat/webapps">/usr/local/tomcat/webapps/jsp-examples/for.jsp<%int i; for(i=1;i<100;i++){ out.println("<h" + i + ">hello world!</h" + i + ">"); } %>/usr/local/tomcat/conf/jk2.propertiehandler.list=request,container,channelsocketchannelsocket.port=8009channelsocket.address=127.0.0.1channelsocket.maxport=port+10/usr/local/apache/conf/workers2.properties[shm]file=/usr/local/apache/logs/shm.filesize=1048576[workerenv:]info=global server optionstiming=1debug=0[channel.socket:localhost:8009]port=8009host=127.0.0.1[ajp13:localhost:8009]channel=channel.socket:localhost:8009[uri:/*.jsp]worker=ajp13:localhost:8009/etc/rc.d/init.d/httpd#!/bin/sh# chkconfig:2345 92 12# description:starting apache and tomcat serverld_library_path=/usr/java/j2sdk1.4.2_04/jre/lib/i386:/usr/java/j2sdk1.4.2_04/jre/lib/i386/serverexport ld_library_pathcatalina_base=/usr/local/tomcatexport catalina_basecatalina_home=/usr/local/tomcat export catalina_home apache_home=/usr/local/apache export apache_home java_home=/usr/java/j2sdk1.4.2_04export java_home profiledir=/var/runcase "$1" in start) if [ -f /tomcat5_apache2 ]; then echo "running tomcat5_apache2" else if [ -f /bin/startup.sh ]; then if [ -f /bin/apachectl ]; then "/bin/startup.sh" echo "startting tomcat5" sleep 3 echo "startting apache2" /bin/apachectl start echo "." touch /tomcat5_apache2 else echo "apache file not founds" fi else echo "tomcat file not founds" fi fi ;; stop) if [ -f /tomcat5_apache2 ]; then if [ -f /bin/shutdown.sh ]; then if [ -f /bin/apachectl ]; then "/bin/shutdown.sh" echo "stopping tomcat5" sleep 3 echo "stopping apache2" /bin/apachectl stop rm /tomcat5_apache2 else echo "apache file not founds" fi else echo "tomcat file not founds" fi else echo "not running tomcat5_apache2" fi ;; *) echo "usage; `basename $0` {start|stop}" 1>&2 exit 1 ;; esac exit 0
#chmod u+x /etc/rc.d/init.d/httpd //修改文件执行权限#/sbin/chkconfig --add httpd //将httpd加入系统启动列表
/etc/xinetd.d/cvspserverservice cvspserver{socket_type=streamwait=nouser=rootserver=/usr/bin/cvsserver_args=-f --allow-root=/usr/local/cvsroot pserverlog_on_failure += userid }
# /usr/sbin/useradd -d /usr/local/cvsroot cvs //创建cvs管理用户。#passwd cvs //创建管理用户密码。# chmod 771 /usr/local/cvsroot //修改cvs根目录权限。# su cvs //使用cvs用户的身份。$ cvs -d /usr/local/cvsroot init //初始化cvs仓库。 //退出cvs用户身份。#chmod 644 /etc/xinetd.d/cvspserver //修改cvs服务启动文件权限。# /etc/rc.d/init.d/xinetd restart //重启动xinetd超级服务器。# netstat -lnp|grep 2401 //查看cvs服务是否已经启动。# /usr/sbin/useradd cvspub //创建cvs等效系统用户cvspub。# /usr/sbin/usermod -g cvs cvspub //将cvspub用户加入cvs组。#cd /home/tets1 //进入测试用的项目目录。#cvs import -m 'this is a test only' test1 v_0_0_1 start //将当前项目的文件导入cvs仓库。
/usr/local/cvsroot/cvsroot/passwdtest1:nxwxabrve7z/w:cvspubtest2:fztxeaww.ysia:cvspub
/usr/local/cvsroot/cvsroot/readerstest1/usr/local/cvsroot/cvsroot/writerscvstest2
练就火眼金睛 十一种常见电脑
打印机共享提示“操作无法完成
如何查找有故障的配件
回眸一笑百魅生,六宫粉黛无颜色
岁月静美,剪一影烟雨江南
芜湖有个“松鼠小镇”
小满:小得盈满,一切刚刚好!
一串串晶莹剔透的葡萄,像一颗颗宝石挂在藤
正宗老北京脆皮烤鸭
人逢知己千杯少,喝酒搞笑图集
搞笑试卷,学生恶搞答题
新闻热点
疑难解答
图片精选
从JSP 例子解析Web 安全编程实战
Jsp图片验证码实例代码
JSP如何统计在线人数和注册人数
java验证码
网友关注