Linux下安装最新Apache2.0.52+php5+gd2+MySQLl

Apache SkyWalking 部署与接入实践:版本、端口、Agent 与常见误区(Windows 本地测试 + Linux 生产参考) 本文梳理SkyWalking本地测试与生产部署关键点,澄清组件关系与常见误区:OAP、UI、存储、JavaAgent为独立组件,11.0.0起移除旧版BoosterUI;BanyanDB为默认存储,需先于OAP启动且版本匹配;端口职责明确(如11800为Agent gRPC上报端口);新版HorizonUI需手动配置用户及Argon2id哈希密码;部署顺序为BanyanDB→OAP→UI,Agent仅连接OAP 11800端口。建议生产环境使用Docker/K8s,严格配置安全与兼容性。 阅读详情
由于gd2才开始支持真彩图片的创建,所以,,升级服务器,因为原来的安装都是默认的系统安装,也更因为是个菜鸟,所以,安装很困难,起初根据网上一些文章在我的red hat A 3 上安装测试,不过,测试了安装php4.3.X 和php5.0.X都没有成功,最后,根据其他人的文章,自己搞了将近3天,终于安装上了,下面就我安装中出现的错误和过程写出来和大家分享,以免有像我一样的菜鸟们走弯路! (我可是两天多的时间,安装php的次数不下50次得来的经验,希望大家多多支持,有错误当然欢迎给我指正!转载请注明来自中国智慧在线(http: //article.21e.cn ,谢谢!),以下经过测试在red hat 9 和red hat A 3上通过! 欢迎转载,但是请注明原出处:http://article.21e.cn !!谢谢! 如果你机器里原来装有了PHP或者APACHE的RPM或者低版本.你可以现删除,删除安装简洁一些,不过我的实际操作过程是煤油删除,而直接安装的.当然你也可以跟我一样! 首先,服务器GCC要有,不然什么都不能做.可以用gcc -v来查看是否安装了GCC, #gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34) 有以上类似信息说明已有GCC, 没有就现安装吧,至于如何安装,我就不说了,可以用光盘安装或者是下载源文件都可以,当然你的版本不一定是3.2.3! 请下载以下所有的东西: httpd-2.0.X.tar.gz 版本最好是下载最新的啦,下载地址:http://www.apache.org MySQL-client-4.0.20-0.i386.rpm MySQL-server-4.0.20-0.i386.rpm(如果你打算升级mysql的话请下载,下载地址:http: //www.mysql.org 当然也是下载最新的版本最好了,由于我不打算安装mysql,就省略了,安装的时候的步骤也是先安装mysql!) php-5.0.X.tar.gz 下载地址:http://www.php.net ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz zend的最新版安装是好像有点问题,就下载这个版本就可以,zend用来加速php,你可以选择不安装!下载地址:http: //www.zend.com gd-2.0.28.tar.gz 这个软件的下载地址,php推荐的是:http://www.boutell.com/gd/ 但是由于某些原因,开发者不支持gif图像的创建,这有点不太方便,所以,我下载了个支持gif图像的,也就是打了gif补丁的:http: //www.rime.com.au/gd/ libxml2-2.X.X.tar.gz 下载地址: zlib-1.X.X.tar.gz 忘记了,自己找一下吧 jpegsrc.v6b.tar.gz 下载地址:ftp://ftp.uu.net/graphics/jpeg/ libpng-1.2.5.tar.gz 下载地址:http://www.libpng.org/pub/png/libpng.html freetype2-X.X.tar.gz 下载地址:http://www.fretype.org xpm-3.4k-2.i386.rpm 忘记了,自己找一下吧 以上都是我下载的官方地址,软件的版本中的X,你自己看看你想用哪个版,不过最好是用最新稳定版本的!如果你以前安装过上述软件的其他版本,你也可以选择不安装! 安装MYSQL 服务器: #rpm -ivh MySQL-server-4.0.20-0.i386.rpm #rpm -ivh MySQL-client-4.0.20-0.i386.rpm 安装好后试试能不能用 #mysql 如果设置了密码后测试方法是(mysql -u root -proot -h localhost 注意的是-p后煤没有空格,直接跟密码) Welcome to the MySQL monitor. Commands end with ; or /g. Your MySQL connection id is 27651 to server version: 4.0.20-standard Type 'help;' or '/h' for help. Type '/c' to clear the buffer. 说明可以了! 请自己改mysql的密码,方法不说了! 安装XPM #rpm -ivhxpm-3.4k-2.i386.rpm 安装libxml # tar -zxf libxml2-2.6.16.tar.gz # cd libxml2-2.6.16 # ./configure (xml默认安装就可以,不要指定路径了,因为安装时php可能找不到它,PHP5只支持libxml2-2.5.10以上版本) # make # make install 安装zlib # tar -zxf zlib-1.2.2.tar.gz # cd zlib-1.2 # ./configure --prefix=/usr/local/zlib2 (注意,如果您以前没有安装zlib,可以不指定路径,我是没有删除以前的低版本才指定的!以下雷同!) # make # make install 安装jpeg # tar -zxf jpegsrc.v6b.tar.gz # cd jpeg-6b/ # ./configure --prefix=/usr/local/jpeg6 # make # make install-lib 如果你选择默认安装,可能很顺利,指定路径后,请先创建以下文件夹 错误提示:...... /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/include/jconfig.h’: 没有那个文件或目录 make: *** [install-headers] Error 1 # mkdir /usr/local/jpeg6 # mkdir /usr/local/jpeg6/include # mkdir /usr/local/jpeg6/lib # make install-lib # make install 安装时如果错误提示: /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/lib/libjpeg.a’: 没有那个文件或目录 make: *** [install-lib] Error 1 创建如下文件夹: # mkdir /usr/local/jpeg6/lib # make install /usr/bin/install -c cjpeg /usr/local/jpeg6/bin/cjpeg /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/bin/cjpeg’: 没有那个文件或目录 make: *** [install] Error 1 # mkdir /usr/local/jpeg6/bin /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/jpeg6/man/man1/cjpeg.1 /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/man/man1/cjpeg.1’: 没有那个文件或目录 make: *** [install] Error 1 # mkdir /usr/local/jpeg6/man # mkdir /usr/local/jpeg6/man/man1 # make install 好了,直到安装成功! 安装libpng: # tar -zxf libpng-1.2.7-config.tar.gz # cd libpng-1.2.7-config # ./configure --prefix=/usr/local/libpng2 # make # make install 安装freetype: # tar -zxf freetype-2.1.9.tar.gz # cd freetype-2.1.9 # ./configure --prefix=/usr/local/freetype2 # make # make install 安装gd库: # tar -zxf gd-2.0.26gif.tar.gz # cd gd-2.0.26gif # ./configure --prefix=/usr/local/gd2 --with-zlib=/usr/local/zlib2/ --with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype2/ (请指定及格插件的安装路径,否则安装php的时候可能出错!) # make # make install 安装apache,(php5安装环境需要apache2.0.46以上版本,下载的时候注意!) #tar zxvf httpd-2.0.50.tar.gz #cd httpd-2.0.50 #./configure --prefix=/usr/local/apache2 --enable-module=so #make #make install 安装php5: # tar -zxf php5-200411260130.tar.gz # cd php5-200411260130 # ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng2/ --with-gd=/usr/local/gd2/ --with-freetype-dir=/usr/local/freetype2/ --enable-trace-vars --with-zlib-dir=/usr/local/zlib2/ -with-mysql=/var/lib/mysql # make # make install # cp php.ini-dist /usr/local/php/lib/php.ini 安装libxml的时候如果指定了路径,make的时候可能出错,所以,我安装的时候没指定! 我MAKE PHP4.3.8 和5的时候都遇到: ext/gd/gd.lo(.text+0x63a): In function `zm_deactivate_gd': /root/software/php-4.3.8/ext/gd/gd.c:385: undefined reference to `gdFreeFontCache' collect2: ld returned 1 exit status make: *** [sapi/cli/php]Error 1 另外还有一个错误可能是什么: libphp.lo的错误(错误当时没有纪录,忘记了,大概是!) 是因为GD库的freetype没装,或者是安装gd库的时候煤油指定插件的路径!! 复制PHP.INI文件到正确位置 在PHP目录下运行 #cp php.ini-dist /usr/local/php/lib/php.ini 编辑apache配置文件httpd.conf #vi /usr/local/apache2/conf/httpd.conf 要改的有如下几处: 一般都在 #AddType application/x-tar .tgz 下加一行 #LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php 如果你搜索其它地方没有以下这行 LoadModule php5_module modules/libphp5.so 请把上面的#号去掉 还有找到 DirectoryIndex index.html index.html.var 在后面加 index.php 让它把index.php做为默认页 找到 # don't use Group #-1 on these systems! 把下面的用户名和组改为 User apache Group apache (原来好像是nobody) 再找 #ServerName 把#去掉,后面的IP改成你的IP. 找到 DocumentRoot "/usr/local/apache2/htdocs" 把/usr/local/apache2/htdocs改为你存放网页文件的路径 为了让中文网页没乱码 找到 AddDefaultCharset iso8859-1 把后面的iso8859-1改为gb2312 或者是干脆off 其他的选项就自己修改吧!或者到http://article.21e.cn 有一个专门的httpd.conf的说明! 保存httpd.conf文件. 启动apache # /usr/local/apache2/bin/apachectl start 如果没有出错,写一个测试页放到你网页目录下.访问就应该可以看到php的版本等信息了! 如无意外.PHP脚本已经可以连接mysql了. 用ZendOptimizer加速PHP #tar zxvf ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz #cd ZendOptimizer-2.5.3-linux-glibc21-i386 #./install.sh 安装的时候注意输入正确的安装apache的路径等内容! 安装完毕,再看看phpinfo页面的zend选项就发现了!! 如果你以前的apache没有删除,而你又想使用 # /etc/init.d/httpd restart 这样重起apache的话,那就修改/etc/init.d/httpd这个文件,修改其中的apahce的三个路径就可以了!!
httpd-2.4.50.tar.gz apache The Apache HTTP Server Project is pleased to announce the release of version 2.4.50 of the Apache HTTP Server ("Apache" and "httpd"). 立即下载

相关推荐

R语言新手也能搞定!WGCNA分析全流程代码详解(附常见报错解决方案)

本文为R语言新手提供了WGCNA分析的完整代码流程与实战指南。从环境配置、数据准备、软阈值选择、网络构建到模块-表型关联分析,逐步详解核心步骤。重点针对安装依赖、内存不足等常见报错提供了具体解决方案,帮助初学者避开陷阱,顺利完成加权基因共表达网络分析。

terraform7cloud的博客 549

php gd2 安装,Linux下PHP+GD2的安装方法

开始安装和编译代码:A先安装支持包(注意安装顺序)建立初始目录:mkdir /usr/local/modules#jpeg目录mkdir /usr/local/modules/jpeg6mkdir /usr/local/modules/jpeg6/binmkdir /usr/local/modules/jpeg6/libmkdir /usr/local/modules/jpeg6/includem...

weixin_42131367的博客 1176

从NASA DataPort下载到PyTorch Dataset:手把手处理USGS光谱库的AVIRIS数据

本文详细介绍了如何从NASA DataPort下载USGS光谱库的AVIRIS高光谱数据,并将其转化为PyTorch Dataset对象。内容涵盖数据获取、预处理、辐射定标及高效数据加载技巧,特别针对AVIRIS数据的水吸收波段剔除和波段分组标准化进行了重点讲解,为环境监测、地质勘探等领域的研究者提供实用指南。

weixin_30607659的博客 289

linux下安装gd2.so,linux安装php,gd支持jpeg

这几天弄一个项目的服务器,一同事突然告诉我报错误了:Fatal error: Call to undefined function imagecreatefromjpeg()解决办法:[size=large]1,重新安装php不要安装gd[size]#./configure --prefix=/usr/local/php --with-config-file-path=/etc \--with-m...

weixin_39625172的博客 890

从零到千兆:KSZ9031 PHY芯片在Zynq PS端的驱动移植心路历程

本文详细记录了在Xilinx Zynq-7000平台(基于XC7Z020芯片)上,为KSZ9031千兆以太网PHY芯片移植LwIP协议栈驱动的完整过程。从硬件连接配置、Vivado工程设置到LwIP库的深度修改与调试,分享了解决PHY识别、自协商及性能优化等关键问题的实战经验,助力开发者实现稳定的千兆网络连接。

honey的博客 1123

ArcGIS Pro 3.4 二次开发 - 地理数据库

本文介绍了在ArcGIS Pro SDK 3.4和.NET 8环境下,如何操作地理数据库的多种方法。首先,通过路径打开文件地理数据库,并处理可能出现的异常。其次,使用连接属性或sde文件路径打开企业级地理数据库。此外,还展示了如何从项目项、要素图层中获取地理数据库,以及如何执行SQL语句。最后,文章详细说明了如何从地理数据库中获取单个定义或定义列表,包括表定义、要素类定义、关系类定义和要素数据集定义。这些操作均在后台线程中执行,确保应用程序的响应性。

Winemonk 947

Linux下PHP的GD2安装方法

链接:http://space.doit.com.cn/139823/viewspace-123684.html ...

cuisheng6388的博客 989

12-RK平台U-Boot启动流程

先看概述,把这一章要回答的问题摆出来,带着问题听。RK 特有的 BootROM -> MiniLoader -> SPL -> U-Boot -> Kernel。这是因为 RK 平台使用闭源的 DDR 初始化固件,需要通过 MiniLoader 来加载和运行。为什么多一层?这是 RK 平台的特殊性决定的。RK 平台使用闭源的 DDR 初始化固件,这段代码 Rockchip 不开源,只能以二进制形式提供,它需要一个载体来加载和运行,这个载体就是 MiniLoader。

内核笔记 1160

Linux上mysql,apache,php,GD2的安装

<br />安装了很多次了~~这次把过程完整的记录下来<br />涉及到的软件如下:<br />mysql-6.0.2-alpha-linux-i686-glibc23.tar.gz<br />zlib-1.2.3.tar.gz<br />libpng-1.2.8.tar.gz<br />freetype-2.1.10.tar.gz<br />jpegsrc.v6b.tar.gz<br />libxml2-2.6.19.tar.gz<br />gd-2.0.33.tar.gz<br />curl-7.15.

weiyijijing的专栏 4198

planning模块(6)-参考线的平滑(二次规划)

上一篇已经介绍了采样点生成锚点数据的过程,并且将所有采样点生成的锚点数据设置到了平滑器中.接下来继续介绍使用二次规划平滑参考线的算法过程.从锚点数据中提取坐标存入raw_point2d,提取横向边界存入anchorpoints_lateralbound,将起点和终点的横向边界设置为0,防止车在起点和终点位置偏离车道中心线.

让复杂的问题变得更容易理解 793

MongoDB分布式事务实现:两阶段提交、日志复制与冲突解决

MongoDB分布式事务机制解析 本文深入剖析了MongoDB 4.0+版本的分布式事务实现原理,重点分析了其在跨文档/跨集合/跨分片场景下的数据一致性解决方案。核心内容包括: 底层机制:采用改进的两阶段提交协议,通过oplog日志复制实现无中心协调器的事务管理,结合WiredTiger存储引擎和锁机制保障ACID特性。 创新设计:将传统2PC的中心协调功能分散到Primary节点,利用oplog作为事务状态记录,实现自动故障恢复和60秒超时回滚机制。 性能优化:针对大事务、写冲突等常见问题,提出拆分微事务

数据知道的博客 1268

centos下为php添加gd扩展

第一步: 安装需要用到的库 yum -y install libjpeglibjpeg-devel libpng libpng-devel freetype freetype-devel 第二步: 进入到php的源码目录下的ext/gd目录(这里是源码目录,不是安装目录,注意区别) 1.首先执行:{$php_indtall_dir}/bin/phpize 注:这里的{$php_in

linuxkai 1万+

《拉依达的嵌入式\驱动面试宝典》—操作系统篇(二)

《拉依达的嵌入式\驱动面试宝典》 整合了所有我认为可能遇到的技术面试问题。所有问题及其答案均是我个人学习后查阅资料总结,每个回答都做了仔细的分析,在嵌入式及其驱动面试相关问题解析做到全网独一无二。学习或者转行到嵌入式、驱动开发领域学习的不二之选

拉依达不拉跨的博客 475

linux php gd2,Linux下PHP的GD2安装方法

开始安装和编译代码:A先安装支持包(注意安装顺序)建立初始目录:mkdir /usr/local/modules#jpeg目录mkdir /usr/local/modules/jpeg6mkdir /usr/local/modules/jpeg6/binmkdir /usr/local/modules/jpeg6/libmkdir /usr/local/modules/jpeg6/includem...

weixin_39963080的博客 550

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

深度学习工具包 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")

PHP的gd2库的安装 和使用注意的一个问题

1.首先确认是否php是否自带了gd2库,确认方法如下: 找到xampp的安装目录 =&gt; php文件夹 =&gt; ext文件夹 =&gt; 看是否有php_gd2.dll文件,如果有就说明已经安装了GD2库。 2.启动phpinfo()来确认GD2库,启动方法: 在xampp目录下找到htdocs文件夹,进入文件夹新建一个后缀为.php的文件,利用编辑器在.php里输入以下代码: ...

qq_37667131的博客 9810

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

php+gd库的源码安装

PHP+GD安装 一、下载软件 gd-2.0.35.tar.gz http://www.boutell.com/gd/ jpegsrc.v6b.tar.gz http://www.ijg.org/ libpng-1.2.18.tar.gz http://sourceforge.net/projects/libpng/ ...

weixin_33980459的博客 373

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

Apache HTTP Server 2.0.52 Released

 28 September - Apache HTTP Server 2.0.52 ReleasedThe Apache Software Foundation and the The Apache HTTP Server Project are pleased to announce the release of version 2.0.52 of the Apache HTTP Ser

肥三的专栏 1760

APACHE2.0.52安装

安装cd  httpd-2.0.52.tar.gz所在的目录 tar -zxvf httpd-2.0.52.tar.gzcd httpd-2.0.52./configure  --prefix=/usr/local/apache2    --enable-so    --enable-rewrite    --enable-mime   --enable-headersmakemake insta

Tansf - BLOG 1956

apache 2.0.52 快速搭建基于linux的静态网站

最近搭建了一个基于linux系统的静态网站,小有感触。所使用的软件及linux自带的apache。apache不愧为搭建网站的首选,总的来说Apache的优点在于在各种开源的WWW服务提供工具中特性最全,支持最广,相对比较稳定的,而且扩展性丰富。 好了,面对如此功能强大的一款软件,如何才能利用他进行服务器的搭建呢!如果要把他的所有功能统统说出来,可能要说上几天几夜...

weixin_34054866的博客 199

手动安装Apache 2.2 / PHP 5.2.6

 记下一些东西,省得下去又要到处找。关键是configure时的options1. 编译安装Apache 2.2.9下载,解压,./configure./configure --prefix=/usr/local/apache2.2.9 --enable-modules=somake make install其实如果打算把apache和php装在一起,应该选择一个如/usr/local/lamp之

Braveo的专栏 1102

linux下编译安装php扩展

今天部署我的博客时出现了几个问题: 1.Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' 2.Call to undefined function Home\Controller\curl_init() 这才发现我安装的php7忘装了pod_mysql和curl扩展。 于是编译安装扩展~~~ 编译扩展 转备好php7的源码

hober的专栏 4284

从 Apache HTTP Server 到 CivetWeb:在鸿蒙 PC 的 3.1 MiB HAP 里嵌入 Web 服务器

当 Apache 遇上鸿蒙 PC:在一条不能 execv 的路上,把 Web 服务器装进 3.1MB 的进程里

qq_2778465975的博客 1万+

无修复版的洞怎么活:Apache Axis 1.x(CVE-2026-90436)与 EOL 组件的末日处置

CVE-2026-90436为Apache Axis 1.x严重RCE漏洞,CVSS 9.8,影响全版本且官方不再修复。攻击者可利用SOAP Fault的不安全类加载实现未认证远程代码执行,绕过认证与暴露面判断。该漏洞嵌入于Confluence、N-central等商业产品中,排查需从classpath考古入手,依赖厂商补丁而非Apache。无补丁时应立即网络隔离,结合日志、外联与文件变更排查利用痕迹,按宿主情况采取迁移、隔离或风险接受策略。本系列收官强调:暴露面管理优先于补丁,无补丁时代亦有标准处置路径—

彭大帅的博客 394

Snowflake 有哪些开源替代方案?ClickHouse、DuckDB、Iceberg、Apache Doris 选型与迁移指南

Snowflake 有哪些开源替代方案?常见候选包括 Apache Doris、ClickHouse、DuckDB,以及 Apache Iceberg 搭配 Trino、Spark 等查询引擎的开放湖仓架构。

SelectDB 213
上一篇: Windows 环境下的PHP5 与 Apache 服务器的配置
下一篇: 暂时停止OBB的研究!
protao
博客等级 码龄23年 0粉丝 7原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值