记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
查看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
方法/步骤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命令找到这个文件,找到类...
安装进度大约到65%时会有错误提示:Error in invoking target 'collector' of makefile '/opt/oracle/102/sysman/lib/ins_emdb.mk'.同时oraInventory/logs/目录下的安装日志文件里面会有如下类似错误提示:这是oracle安装程序的一个bug,可以忽略此错误继续安装,对系统没什么影响。处理方法:这里继续点击“continue”即可,待Oracle完成安装后,再手工执行相应脚本完成链接即可。当oracle完成安装后,如下操作[oracle@hyl bin]$ /u01/app/oracle/product/10.2.0/db_1/bin/relink all--执行脚本后,会自动完成重链接操作--注意:该脚本放置在脚本目录下,实际根据规划的oracle根目录进行查找即可在Configuration Assistants 时会出现错误提示:OUI-25031:Some of the configuration assistants failed.分析:主机名映射错误解决:修改/etc/hosts文件,增加IP地址与主机名的映射如下:接着会遇到错误提示:ORA-27125:unable to create shared memory segment解决:1. 确定安装oracle所使用的用户组# id oracle可以看到oracle组dba id 为501。2. 修改内核参数echo "501" >/proc/sys/vm/hugetlb_shm_group就可以了。
apache_php_tomcat基于主机名的多虚拟主机整合 环境:rhel4 x86-64 + apache2.0.52 + php5.2.17 + jdk1.6.0_29 + tomcat6.0.35, apache为系统缺省安装一,php安装,参见《rhel4_x86_64_php5.2.17_make安装支持mysqli》-> http://blog.csdn.net/lazyclough/article/details/7103948二, tomcat 6 安装1, 下载jdk-6u29-linux-i586-rpm.bin, 为其加上可执行权限并执行,jdk将安装于/usr/java/jdk1.6.0_292, 下载apache-tomcat-6.0.35.tar.gz并解压至任意目录,如:/home/molin/program/apache-tomcat-6.0.353,配置java和tomcat环境变量$ sudo vi /etc/profile, 在文件末尾加上以下内容:###########################################################export JAVA_HOME=/usr/java/jdk1.6.0_29export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jarexport PATH=$PATH:$JAVA_HOME/binexport CATALINA_HOME=/home/molin/program/apache-tomcat-6.0.35export CATALINA_BASE=$CATALINA_HOME###########################################################$ sudo source /etc/profile (使环境变量直接生效)4, 将t...
安装步骤:一、安装oracle-instantclient下载地址:http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html下载 oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm下载 oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm放在/usr/packages/目录下# rmp -ivh oracle-instantclient*此时会生成/usr/lib/oracle/11.2/client/lib/目录*注:下载对应数据库版本二、修改/etc/ld.so.conf配置文件追加一下内容:/usr/lib/oracle/11.2/client/lib/执行命令 # ldconfig三、安装oci8下载最新的oci8组件下载地址:http://pecl.php.net/package/oci8下载 oci-2.0.8.tgz放在/usr/packages/目录下?123456789# tar -xvzf oci-2.0.8.tgz # cd oci-2.0.8 # /usr/local/php/bin/phpize (用phpize生成configure配置文件) # ./configure --with-php-config=/usr/local/php/bin/php-config --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client/lib # make && make install成功后会告诉你oci8.so已经成功放在以下目录四、配置PHP支持OCI扩展修改php配置文件# vi /usr/local/php/lib/php.ini文件在extension项后追加以下内容...
首先安装好SQL Anywhere 5 软件。这里就不再说明了。由于是64位的系统。配置odbc时,一定要使用32位的odbc 可以到以下目标打开C:\Windows\SysWOW64\odbcad32.exe首先配置好数据源:其中: User ID: dba Password: sql 然后可以查看数据库的信息了。 Tools -----connect 可以查看到有个db_child的数据库。配置源时,会启动数据库,所以打开软件,可以正常连接。但是关闭数据库后,就不能正常使用了。 当然可以使用以下方式启动数据库:可以作个脚本或是服务。"D:\Program Files (x86)\Sybase\SQL Anywhere 5.0\win32\dbsrv50.exe" "D:\图书馆系统\兰台\db_child.db"
CentOS7 安装配置Mariadb (Mysql) 整个安装过程: [php] view plaincopy mysql:[root@localhost ~]# yum -y install mariadb* Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.linode.com * extras: mirrors.linode.com * updates: mirrors.linode.com Resolving Dependencies --> Running transaction check ---> Package mariadb.x86_64 1:5.5.37-1.el7_0 will be installed ---> Package mariadb-bench.x86_64 1:5.5.37-1.el7_0 will be installed ---> Package mariadb-devel.x86_64 1:5.5.37-1.el7_0 will be installed ---> Package mariadb-embedded.x86_64 1:5.5.37-1.el7_0 will be in...
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...
最新评论