autoDevops,CI,CD
CentOS下httpd增加模块  通常我们在部署LAMP时,安装完httpd服务,用我们整理的httpd.conf替换默认的httpd.conf重启httpd服务时可能会遇到某些模块未编译的情况,第一反应是要重新编译,但是apache是支持动态扩展模块的,也就是说不需要重新编译整个apache,就像的PHP phpize工具一样,能够单独编译某个扩展,并加入到已有的环境中。操作步骤:1.下载相应的httpd-x.x.xx源码2.安装扩展(以module_file_cache为例)#cd httpd-x.x.xx/modules/cache#apxs -i -a -c mod_file_cache.c3.修改配置文件一般扩展安装成功后会自动修改配置,但是需要我们确认配置文件是否配置正确,我测试在2完成之后,httpd.conf文件中自动增加了:LoadModule file_cache_module /usr/lib64/httpd/modules/mod_file_cache.so可以修改为:LoadModule file_cache_module modules/mod_file_cache.so4.重启httpd#/etc/init.d/httpd restart另外增加mod_mem_cache时提示即:#apxs -c -i mod_mem_cache.cmod_mem_cache.so: undefined symbol: cache_find其实是这样的指令:#apxs -c -i mod_mem_cache.c cache_cache.c cache_pqueue.c cache_hash.c
Centos6.5 linux解决xhost: unable to open display  实用技巧:在Linux下设置xhost方法步骤第一步:用root登陆linux,启动vnc服务;第二步:根据vnc起来的端口,设置exportDISPLAY=localhost:1(1表示vnc在第一个tty上启动的),vnc的启动信息见附件1;第三步:执行xhost +,并且提示“access controldisabled, clients can connect from any host”才正确。linux下的操作日志如下:[root@localhost ~]# vncserverNew'localhost:1 (root)' desktop is localhost:1Startingapplications specified in /root/.vnc/xstartupLog file is/root/.vnc/localhost:1.log[root@localhost ~]# exportDISPLAY=localhost:1[root@localhost ~]# xhost +accesscontrol disabled, clients can connect from anyhost 在设置xhost时,出现了unable的问题。使用上诉方法就可以搞定。
 
0
PrerequisitesRStudio Server v0.99 requires RedHat or CentOS version 5.4 (or higher).RStudio Server has several dependencies on packages (including R itself) found in the Extra Packages for Enterprise Linux (EPEL) repository. If you don’t already have this repository available you should add it to your system using the instructions found on the Fedora EPEL website.After enabling EPEL you should then ensure that you have installed the version of R available from EPEL. You can do this using the following command:$ sudo yum install R RedHat/CentOS 6 and 7To download and install RStudio Server open a terminal window and execute the commands corresponding to the 32 or 64-bit version as appropriate. 64bitSize:  33.4 MBMD5: 216b8e7f7ae28203900c63ac163c1d0cVersion:  0.99.446Released:  2015-06-16$ wget http://download2.rstudio.org/rstudio-server-rhel-0.99.446-x86_64.rpm$ sudo yum install --nogpgcheck rstudio-server-rhel-0.99.446-x86_64.rpm32bitSize:  32.5 MBMD5: 2...
 
0

centOS6.5上安装RStudio Server

发表者:admin分类:Devops2015-06-20 10:54:46 阅读[2674]
  centOS6.5上安装RStudio Server   我的系统是64位的centOS 6.5。安装RStudio Server的预览版,当时版本为64位的0.98.766。安装时有如下报错[root@supstat download]# rpm -ivh rstudio-server-0.98.766-x86_64.rpmerror: Failed dependencies: libcrypto.so.6()(64bit) is needed by rstudio-server-0.98.766-1.x86_64 libgfortran.so.1()(64bit) is needed by rstudio-server-0.98.766-1.x86_64 libssl.so.6()(64bit) is needed by rstudio-server-0.98.766-1.x86_64参考stackoverflow上的一篇文章:yum install libcrypto.so.6 -yyum install libgfortran.so.1 -yyum install libssl.so.6 -yyum install openssl098e-0.9.8e -yyum install gcc41-libgfortran-4.1.2 -yyum install pango-1.28.1 -y wget ftp://rpmfind.net/linux/centos/6.5/os/x86_64/Packages/compat-libgfortran-41-4.1.2-39.el6.x86_64.rpmrpm -Uvh compat-libgfortran-41-4....
 
0

centos7 Linux安装eclipse

发表者:admin分类:Devops2015-06-20 10:01:23 阅读[2148]
centos7安装eclipseEclipse是一个集成开发环境(IDE),包含一个基工作区和定制环境的可扩展插件系统。大部分使用 Java 编写,Eclipse 可以用来开发应用程序。通过各种插件,Eclipse 也可以用于其他编程语言开发应用程序:Ada、ABAP、C、C++、COBOL、 Fortran、Haskell、 JavaScript、Lasso、Natural、Perl、 PHP、 Prolog、 Python、Ruby、Scala、Clojure、 Groovy、Scheme 和 Erlang。它也可以用来开发Mathematica软件包。开发环境包括 Eclipse Java 开发工具(JDT)支持 Java与Scala,Eclipse CDT C / C + +和Eclipse PDT PHP,等等。安装1、安装javayum install java yum (全称为 Yellow dog Updater, Modified),能够从指定的服务器自动下载gz包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。yum提供了查找、安装、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。yum的命令形式一般是如下:yum [options] [command] [package ...]其中的[options]是可选的,选项包括-h(帮助),-y(当安装过程提示选择全部为"yes"),-q(不显示安装的过程)等等。[command]为所要进行的操作,[package ......
 
0

Centos6 编译升级python2.7

发表者:admin分类:Devops2015-06-19 19:56:56 阅读[1954]
查看python的版本[plain] view plaincopy#python  -V    Python 2.6.6  1.下载Python-2.7.3[plain] view plaincopy#wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2  2.解压[plain] view plaincopy#tar -jxvf Python-2.7.3.tar.bz2  3.更改工作目录[plain] view plaincopy#cd Python-2.7.3  4.安装[plain] view plaincopy#./configure  #make all             #make install  #make clean  #make distclean  5.查看版本信息[plain] view plaincopy#/usr/local/bin/python2.7 -V  6.建立软连接,使系统默认的 python指向 python2.7[plain] view plaincopy#mv /usr/bin/python /usr/bin/python2.6.6  #ln -s /usr/local/bin/python2.7 /usr/bin/python  7.重新检验Python 版本[plain] view plaincopy#python -V  8解决系统 Python 软链接指向 P...
ubuntu 12.04下apache2+tomcat7用proxy_ajp 整合步骤   开始操作前,首先下载需要的安装包。apache2:http://httpd.apache.org/download.cgiapr和apr-util:http://apr.apache.org/tomcat7:http://tomcat.apache.org/download-70.cgijdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html东西准备好了之后开始编译、安装。一、编译aprtar -zxvf apr-1.5.0.tar.gzcd apr-1.5.0./configure --prefix=/usr/local/apr-httpd/makemake install二、编译apr_utiltar -zxvf apr-util-1.5.3.tar.gzcd apr-util-1.5.3./configure --prefix=/usr/local/apr-util-httpd/--with-apr=/usr/local/apr-httpd/makemake install三、编译apache2tar -zxvf httpd-2.2.26.tar.gzcd httpd-2.2.26./configure --prefix=/usr/local/apache2/--with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/--enable-so --enable-mods-shared=most --enable-rewrite=shared --enable-proxy=shared --enable-proxy-ajp=shared --enable-proxy-balancer=shared -...
[root@rac2 ~]# id oracleuid=500(oracle)gid=501(oinstall)groups=501(oinstall),502(dba),503(asmadmin),504(oper)[root@rac2 ~]# more/proc/sys/vm/hugetlb_shm_group0下面用root执行下面的命令,将dba组添加到系统内核中:[root@rac2 ~]# echo 502>/proc/sys/vm/hugetlb_shm_group--这里的502 是上面的id 命令查看出来的。[root@rac2 ~]# more /proc/sys/vm/hugetlb_shm_group502 但是在服务器重启后,数据库依然不能随系统自动启动,发现还需要通过上面的命令来进行修改才可以,意味则上面命令只是修改了内存空间没有进行记录。要解决这个问题需要修改/etc/sysctl.conf文件 vm.hugetlb_shm_group  = 501
 
0

inux下为php开启oci8扩展

发表者:admin分类:Devops2015-06-18 11:49:09 阅读[1899]
方法/步骤1安装oracle安装包rpm -ivh oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpmrpm -ivh oracle-instantclient11.2-devel-11.2.0.1.0-1.i386.rpmrpm -ivh oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm说明:1.安装oci8扩展不需要安装完整的oracle客户端,但是要安装三个小的安装包,加起来45m左右,安装包可以去oracle官网获得,网上帖子中常见的oracle安装包版本是11和10的。2.获得这三个安装包后上传到服务器,cd命令切换到保存的目录,用以上命令安装即可。2安装oci8扩展tar zxvf oci8-1.4.1.tgzcd oci8-1.4.1/usr/bin/phpize./configure --with-php-config=/usr/bin/php-config --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client/libmakemake install说明:1.oci8-1.4.1.tgz这个是单独的扩展包,也可以下载完整的php安装包,如php-5.3.28.tar.gz,解压后,cd到ext目录下的oci8目录即可。2.phpize和php-config都不一定在上面的路径中,因为安装lamp环境的方法每个人不尽相同,可以用which命令查找,如which phpize。3.关键点是要保证phpize,php-config,以及oracle的安装路径要正确3修改php.ini可以用find命令找到这个文件,找到类...
 
0

Installing Multicraft on CentOS 7

发表者:admin分类:Devops2015-06-10 16:56:17 阅读[3103]
Installing Multicraft on CentOS 7 Over at Nerdcrafteria we’ve recently moved over our server hosting to two dedicated servers at OVH.  We’d previously been using CentOS 5 as our OS, which is still offered at OVH, but I decided the time was ripe for an upgrade and plumped with the latest and greatest CentOS 7.Not much has changed, apart from MariaDB replacing vanilla MySQL (which has let to a massive performance improvement), and systemd replacing SysV. SystemD was somewhat of a mystery to me at the start, and whilst at the beginning I did slightly resent losing the simplicity of just changing rc.local, the new system is vastly superior and I now find it much more intuitive.Previous tutorials that cover setting up minecraft and multicraft on earlier versions of CentOS are still fine for the most part, but I thought I’d outline the changes to systemd I’d made to set up auto-starting of the multicraft daemon and therefore the minecraft server on box restart.Firstl...
    总共66页,当前第25页 | 页数:
  1. 15
  2. 16
  3. 17
  4. 18
  5. 19
  6. 20
  7. 21
  8. 22
  9. 23
  10. 24
  11. 25
  12. 26
  13. 27
  14. 28
  15. 29
  16. 30
  17. 31
  18. 32
  19. 33
  20. 34
  21. 35