Linux下java web服务器搭建(Apache2.2+svn1.6)

Jenkins+Maven+SVN持续集成环境搭建指南 持续集成(CI)是现代软件开发的核心实践,通过自动化构建、测试和部署流程显著提升交付效率。以Jenkins为核心的CI系统配合Maven构建工具和SVN版本控制,形成了一套稳定可靠的Java项目持续集成方案。该技术组合特别适合需要严格权限控制和目录版本管理的企业级项目,通过配置代码提交触发自动构建、单元测试执行和WAR包部署到Tomcat容器等标准化流程,使开发团队能够快速获得质量反馈。本文详细讲解从环境准备、工具配置到自动化部署的全套实施方案,包括Linux系统下的JDK/Tomcat优化、Jenkins 阅读详情

原创文章,转载请注明出处:http://www.aj2ee.com


Linux下java web服务器搭建(JDK1.6、MySQL5.1、Apache2.2+2Tomcat6+svn1.6)

 svn的安装与配置

在安装Red Hat Linux的时候,我把自带的svn也装上了,因为版本是1.4的,所以,我们更新到1.6.17。现在最新版本是1.7

软件准备:

sqlite-3.5.9-2.i386.rpm

sqlite-devel-3.5.9-2.i386.rpm

apr-1.2.8-1.i386.rpm

apr-devel-1.2.8-1.i386.rpm

apr-util-1.2.8-1.i386.rpm

apr-util-devel-1.2.8-1.i386.rpm

neon-0.28.4-1.i386.rpm

neon-devel-0.28.4-1.i386.rpm

subversion-1.6.17-1.i386.rpm

mod_dav_svn-1.6.17-1.i386.rpm

先卸载之前的版本1.4,输入svn –version 查看当前版本信息

[root@localhost ~]# svn --version 
svn,版本 1.4.2 (r22196) 
   编译于 Aug  5 2009,19:03:56 
 
Copyright (C) 2000-2006 CollabNet. 
Subversion is open source software, see http://subversion.tigris.org/ 
This product includes software developed by CollabNet (http://www.Collab.Net/). 
 
可使用以下的档案库存取 (RA) 模块: 
 
* ra_dav : 通过WebDAV (DeltaV) 协议访问档案库的模块。 
  - handles 'http' scheme 
  - handles 'https' scheme 
* ra_svn : 使用svn网络协议访问档案库的模块。 
  - handles 'svn' scheme 
* ra_local : 访问本地磁盘的档案库模块。 
  - handles 'file' scheme 
 
[root@localhost ~]#

再输入 rpm -qa|grep subversion 看关于subversion的软件名称,再用rpm -e subversion-1.4.2-4.el5_3.1卸载subversion

[root@localhost ~]# rpm -qa|grep subversion 
 
subversion-1.4.2-4.el5_3.1 
 
[root@localhost ~]# rpm -e subversion-1.4.2-4.el5_3.1

这时再用svn命令时,就会提示“没有那个文件或目录”

[root@localhost~]# svn

bash:/usr/bin/svn: 没有那个文件或目录

subversion依赖的软件较多,使用yum安装是最方便的,这里我们用rpm安装包来安装,下载上面的10个rpm文件,网上都可以下载得到。下载地址:http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/

上面提到的有些软件包因为已经安装了低版本,所以现在我们要升级到新版本,不然subversion是无法安装的。

   1.升级sqlite

用命令rpm -Uvhsqlite-3.5.9-2.i386.rpm sqlite-devel-3.5.9-2.i386.rpm升级sqlite

[root@localhost svn1.6]# rpm -Uvh sqlite-3.5.9-2.i386.rpm  sqlite-devel-3.5.9-2.i386.rpm  
Preparing...                ########################################### [100%] 
   1:sqlite                 ########################################### [ 50%] 
   2:sqlite-devel           ########################################### [100%] 
[root@localhost svn1.6]#

   2.升级apr

 [root@localhost svn1.6]# rpm -Uvh apr-1.2.8-1.i386.rpm 
warning: apr-1.2.8-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 751d7f27 
Preparing...                ########################################### [100%] 
   1:apr                    ########################################### [100%] 
[root@localhost svn1.6]# rpm -Uvh apr-devel-1.2.8-1.i386.rpm 
warning: apr-devel-1.2.8-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 751d7f27 
Preparing...                ########################################### [100%] 
   1:apr-devel              ########################################### [100%] 
error: unpacking of archive failed on file /usr/include/apr-1/apr_network_io.h;4fb8d8d2: cpio: read 
[root@localhost svn1.6]#

3.升级neon

[root@localhost svn1.6]# rpm -ivh neon-0.28.4-1.i386.rpm 
Preparing...                ########################################### [100%] 
   1:neon                   ########################################### [100%] 
[root@localhost svn1.6]# rpm -ivh neon-devel-0.28.4-1.i386.rpm 
Preparing...                ########################################### [100%] 
   1:neon-devel             ########################################### [100%] 
[root@localhost svn1.6]# 

   4.安装subversion和mod_dav_svn(apache和svn通信模块)

[root@localhost svn1.6]# rpm -ivh subversion-1.6.17-1.i386.rpm 
Preparing...                ########################################### [100%] 
   1:subversion             ########################################### [100%] 
[root@localhost svn1.6]# rpm -ivh mod_dav_svn-1.6.17-1.i386.rpm 
Preparing...                ########################################### [100%] 
   1:mod_dav_svn            ########################################### [100%] 
停止 httpd:[确定] 
启动 httpd:[确定] 
[root@localhost svn1.6]# 

查看下svn版本,现在是1.6.17

[root@localhost svn1.6]# svn --version 
svn,版本 1.6.17 (r1128011) 
   编译于 Jun  4 2011,14:06:05 
 
版权所有 (C) 2000-2009 CollabNet。 
Subversion 是开放源代码软件,请参阅 http://subversion.apache.org/ 站点。 
此产品包含由 CollabNet (http://www.Collab.Net/) 开发的软件。 
 
可使用以下的版本库访问模块:  
 
* ra_neon : 通过 WebDAV 协议使用 neon 访问版本库的模块。 
  - 处理“http”方案 
  - 处理“https”方案 
* ra_svn : 使用 svn 网络协议访问版本库的模块。  - 使用 Cyrus SASL 认证 
  - 处理“svn”方案 
* ra_local : 访问本地磁盘的版本库模块。 
  - 处理“file”方案 
 
[root@localhost svn1.6]# 

          配置apache和svn

apache和subversion都已经装好了。现在我们只能通过svn://localhost/repo1的形式访问版本库,现在我们要用http来访问版本库,类似http://localhost/svn/repo1,这时就要通过配置apache。

1.创建版本库

在/usr 下新建一个svn文件夹

[root@localhost svn1.6]# cd /usr  
[root@localhost usr]# mkdir svn

再在/usr/svn 下新建一个repository文件夹,作为版本库的根目录

[root@localhost usr]# cd svn  
[root@localhost svn]# mkdir repository  
[root@localhost svn]# cd repository/

再在/usr/svn/repository下新建一个conf文件夹,这是装所有版本库共用的配置文件,比如用户组,用户名密码配置文件

在/usr/svn/repository/conf文件夹下新建两个文件,分别是authz和passwd。

Authz是用户、用户组及他们对版本库的权限,passwd是用户密码配置文件。

Authz内容如下:

[groups]    
admin = fronttang   ----用户组 admin 下有 fronttang 这个用户 
[/] 
@admin = rw    ---用户组admin,对所有版本库有rw读写权限

Passwd要用apache中的htpasswd命令来创建,不能svn与apache结合后,版本库用法无法通过验证。

使用命令

[root@localhost repository]#htpasswd -bcm /usr/svn/repository/conf/passwd fronttang 123456

在/usr/svn/repository/conf/目录下新建了一个passwd密码文件,并增加了fronttang这个用户密码为123456,密码采用md5加密

关于htpasswd命令的用法,请参见:http://user.qzone.qq.com/584838094/infocenter#!app=2&pos=1308383348

2.配置apache

#vi /etc/httpd/conf/httpd.conf

确保有如下内容

LoadModule dav_svn_module   modules/mod_dav_svn.so 
LoadModule authz_svn_modulemodules/mod_authz_svn.so

如果没有的话请在末尾自行添加,接下来在末尾添加

<Location /svn> 
   DAV svn 
   SVNParentPath /usr/svn/repository/      
   SVNListParentPath on 
   AuthzSVNAccessFile /usr/svn/repository/conf/authz 
   AuthType Basic 
   AuthName "Subversion Repository" 
   AuthUserFile /usr/svn/repository/conf/passwd 
   Require valid-user 
</Location>

保存退出

以下是对次配置的说明

<Location /svn>

DAV svn

SVNParentPath /usr/svn/repository///svn父目录

AuthzSVNAccessFile /usr/svn/repository/conf/authz//权限配置文件

AuthType Basic //连接类型设置

AuthName "SubversionRepository" //连接框提示

AuthUserFile /usr/svn/repository/conf/passwd//用户配置文件

Require valid-user //采用何种认证

</Location>

//"Require valid-user"告诉apache在authfile中所有的用户都可以访问。如果没有,则只能第一个用户可以访问新建库

3.把svn目录加到apache用户下,

[root@localhost usr]# chown -Rapache.apache /usr/svn/

为什么要这样做呢,apache启动的用户是apache,它没有访问/usr/svn目录的权限,因为/usr/svn是用root用户创建的。

   启动服务

 启动svnserve 和 httpd 服务

[root@localhost svn]# svnserve -d -r /usr/svn/repository/ 
[root@localhost svn]# ps aux|grep svnserve 
root      7421  0.0  0.0  12644   592 ?        Ss   20:46   0:00 svnserve -d -r /usr/svn/repository/ 
root      7426  0.0  0.0   5028   664 pts/1    R+   20:47   0:00 grep svnserve 
[root@localhost svn]# service httpd restart 
停止 httpd:                                               [确定] 
启动 httpd:                                               [确定] 
[root@localhost svn]# 

启动服务后在windows7里用TortoiseSVN(图形svn客户端工具)导入一些文件后

在地址栏里输入http://192.168.1.125/svn/repo1就会提示输入用户名和密码,输入用户名密码后就能访问到版本库里的文件,

如图所示:

 



Ubuntu Linux下的Apache2和Subversion配置SVN服务 在Ubuntu Linux操作系统上配置Apache2和Subversion(SVN)服务可以方便地进行版本控制和团队协作。本文将详细介绍如何在Ubuntu Linux上安装和配置Apache2和Subversion,以搭建一个SVN服务器。通过按照以上步骤,在Ubuntu Linux上配置Apache2和Subversion(SVN)服务。这样,你就可以轻松地进行版本控制和团队协作,管理和访问SVN仓库中的文件。使用SVN客户端工具可以向SVN仓库添加和访问文件。现在,你的SVN服务器已经配置完成。 阅读详情

相关推荐

PHP+SQLite绿色迷你尝鲜版

喜欢尝鲜的同学们,新鲜出炉win版php+sqlite3套装,Apache2.3.15+PHP5.4.0rc2 自带一个从fleaphp里面提取的服务管理器 注意:必须有vc2008运行时支持,必须解压在英文路径,否则报错。

ubuntu 上安装和配置Apache2+Subversion

ubuntu 上安装和配置Apache2+Subversion

一个标题 1351

ubuntu下Apache2+Svn详细配置

ubuntu下Apache2+Svn详细配置

ubuntu下svn+apache2安装配置

manager = rw #manager组的用户可以访问/svn/project/下的所有目录,并且有读写权限。skyman = r #skyman用户只有读取权限,不能修改/svn/project/目录下的文件。修改文件中<Location /svn></Location>之间的部分为。其中SVNPath /svn/project/ , SVNParentPath /svn。c.往/home/svn/passwd里添加用户。所有的创建都放在刚刚创建的仓库父目录下。

chenhui0598的专栏 731

CVPR2021 CenterPoint源码解读:从VoxelNet到两阶段优化的完整实现细节

本文深度解析了CVPR 2021 CenterPoint模型的完整实现细节,从VoxelNet体素化、稀疏卷积Backbone,到基于中心点的检测头与两阶段精修机制。文章提供了从环境搭建、数据预处理到核心代码模块(如热力图生成、关键点特征提取与MLP Refiner)的实战指南,并分享了训练策略、多任务损失调优及可视化调试等关键工程实践,助力开发者深入理解并复现这一高效的3D目标检测框架。

linux的博客 470

Qt加载百度地图详细流程(附带报错解决方法)

一篇文章看懂Qt如何加载出百度地图......

qq_60018273的博客 1607

SVN服务器搭建01---Apache2搭建(Ubuntu14.04)

概述 SVN服务器有两种形式,一种是通过Apache方式来实现,这样子我们就可以通过浏览器来访问;第二种是通过Subversion自带的服务器软件来启动服务 这篇博客主要介绍如何通过Apache来搭建SVN服务器   环境描述:  Ubuntu DeskTop 14.04    svn 1.8  apache2   1.安装apache2和svn  sudo apt-get i...

hjq842382134的专栏 3500

HTML5网页基础设计——课程介绍专栏

案例: 参考代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>动手实践</title> <style> *{ margin: 0; padding: 0; font-size:14px; } dd{ width: 461px; height: 145px; margin: -4px; pad.

shengming_tutou的博客 4594

Apache2+SVN

为什么80%的码农都做不了架构师?>>> ...

weixin_33905756的博客 277

SAP FICO实操:如何修改已发生业务数据的成本中心公司代码(附RKACOR06程序运行指南)

本文详细解析了SAP FICO系统中使用RKACOR06程序修改已发生业务数据的成本中心和公司代码的实操方法。通过实战案例分享,提供从前期准备到后期验证的全流程指南,帮助企业应对组织架构重组或财务核算体系调整时的数据迁移挑战,特别适用于跨公司代码的成本中心划转场景。

weixin_27303545的博客 192

【WRF-UCM】BEP+BEM 模拟:README

【WRF-UCM】BEP+BEM 模拟:README

WW、forever的博客 223

Linux下java web服务器搭建(JDK1.6+Tomcat6)

原创文章,转载请注明出处:http://www.aj2ee.com Linux下java web服务器搭建(JDK1.6、MySQL5.1、Apache2.2+2Tomcat6+svn1.5) 系统:Red Hat Enterprise Linux 5 32位(自带Httpd) 软件准备:    jdk-6u31-linux-i586-rpm.bin    MySQL-cli

FrontTang 1591

【软件系统架构】系列十一:面向对象技术—sysML

摘要: SysML(系统建模语言)是UML的扩展,专为复杂系统工程设计,支持硬件、软件、人员等跨领域建模。其核心包括9种图:4种结构图(如块定义图BDD、内部块图IBD)、4种行为图(如活动图AD、序列图SD)和需求图(REQ),覆盖需求、结构、行为及参数约束。相比UML(面向软件),SysML精简图表(9 vs 13),强化需求追踪与性能分析(如参数图PD),并支持MBSE(基于模型的系统工程)。需求关系(如满足、验证、派生)在需求图中明确关联设计实现,形成闭环管理。SysML是UML的子集与系统工程扩展

moton2017的博客 1913

linux svn mysql_linux svn apache

借助apache运行的svn服务器一:安装Apache HTTP Server1、安装Apache HTTP Serveryum install httpd httpd-devel -y2、修改配置文件命令:vi /etc/httpd/conf/httpd.conf找到ServerName配置文件,修改内容如下ServerName localhost:803、增加防火墙使之外部可以访问80端口4、...

weixin_36365168的博客 156

用ChatGPT 5.5掌握SCI的4个实操润色技巧,论文质量极速提升!(附提示词)

ChatGPT 5.5的发布,在学术写作中的应用变得更加精准和安全,通过正确的使用方法,不仅可以改善语法与表达,让论文达到SCI发表水准,还能最大程度保留作者原意,将AIGC检测率控制在低风险区间。可以帮大家省下大量纠结语法、梳理逻辑的时间,在保证润色质量的同时,兼顾AIGC检测的合规要求,为论文投稿成功率提供实实在在的提升。通过智能调整语序、优化用词和句式结构,该方法能够在保留学术质感的同时,使文章表达更自然、贴近人工撰写的风格,从而避免文字过于程式化,提升论文整体可读性和表达的个性化特征。

智能AI让学术科研更容易 66

Monorepo与pnpm:前端项目管理的完美搭档

pnpm又称 performant npm,翻译过来就是高性能的npm。Monorepo是一种项目开发与管理的策略模式,它代表"单一代码仓库"(Monolithic Repository)。在Monorepo模式中,所有相关的项目和组件都被存储在一个统一的代码仓库中,而不是分散在多个独立的代码仓库中,这些项目之间还可能会有依赖关系。

m0_68271787的博客 2562

linux svn web管理,CentOS 6.x 部署Subversion 集成 SvnAdmin Web管理界面

前言:SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS迁移到Subversion。说得简单一点SVN就是用于多个人共同开发同一个项目,共用资源的目的。当然也可用于文件文档类型的共享。SvnAdmin是一个 Java 开发的管理 Svn 服务器的项目用户的 web 应用。安装...

weixin_39969060的博客 607

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

linux部署java svn,linux上安装svn

1.安装apr和apr-utilapr, apr-util: http://apr.apache.org/tar zxvf apr-1.5.1.tar.gzcd apr-1.5.1./configure --prefix=/opt/aprmake && make installtar zxvf apr-util-1.5.4.tar.gzcd apr-util-1.5.4./conf...

weixin_34007888的博客 120

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

svn更新java代码linux_通过浏览器从SVN更新代码到Linux服务器指定目录

今天花几分钟写的一个PHP小程序,用途是:无需给程序员开放服务器SSH帐号,只需通过Web浏览器即可从SVN版本库更新代码到Linux服务器的指定目录。如果有需要,可以给这段代码加个密码登录。1、假设www、www是Apache或Nginx服务器的用户名和组,/data0/www/是网页文件存放根目录,执行以下shell命令:sudo -s/usr/sbin/groupadd www -g 48/...

weixin_42366319的博客 162

Linux下java web服务器搭建(JDK1.6、MySQL5.1、Apache2.2+2...

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34354173的博客 238

linux svn apache

借助apache运行的svn服务器 一:安装Apache HTTP Server 1、安装Apache HTTP Server yum install httpd httpd-devel -y 2、修改配置文件 命令:vi /etc/httpd/conf/httpd.conf 找到ServerName配置文件,修改内容如下 ServerName localhost:80 3、增加防...

weixin_34302561的博客 124
上一篇: Linux下java web服务器搭建(MySQL5.1)
下一篇: Linux下java web服务器搭建(Apache2.2+2Tomcat6)
「已注销」
博客等级 码龄15年 4粉丝 14原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值