autoDevops,CI,CD
[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命令找到这个文件,找到类...
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...
How to Install Multicraft on Centos 6 64bitThis is the text tutorial of the youtube tutorial series which can be found here: http://www.youtube.com/playlist?list=PL133C2C2E824C65A4Before you start make sure nano is installed by typing this in SSH:Code:yum install nanoAnd disable SELinux:Code:setenforce 0Installing MySQL 5:To install MySQL, we do this:Code:yum install mysql mysql-serverThen we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:Code:chkconfig --levels 235 mysqld on/etc/init.d/mysqld startSet passwords for the MySQL root account:Code:mysql_secure_installationCode:[root@Server8 ~]# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MySQL to secure it, we'll need the currentpassword for the root user. If you've just installed MySQL, andyou haven't set the root passwo...
git - 简易指南 助你开始使用 git 的简易指南,木有高深内容,;)。 Tweet 作者:罗杰·杜德勒 安装 下载 git OSX 版 下载 git Windows 版 下载 git Linux 版 创建新仓库 创建新文件夹,打开,然后执行 git init 以创建新的 git 仓库。 检出仓库 执行如下命令以创建一个本地仓库的克隆版本:git clone /path/to/repository 如果是远端服务器上的仓库,你的命令会是这个样子: git clone username@host:/path/to/repository 工作流 你的本地仓库由 git 维护的三棵“树”组成。第一个是你的 工作目录,它持有实际文件;第二个是 缓存区(Index),它像个缓存区域,临时保存你的改动;最后是 HEAD,指向你最近一次提交后的结果。 添加与提交 你可以计划改动(把...
Nginx: could not build the server_names_hash 解决办法上周给一台 Nginx proxy 服务器增加一个虚拟主机名(server_name)后重启 nginx 报错,nginx -t 测试和查看 nginx 错误日志均发现需要增加 server_names_hash_bucket_size 的默认参数:# /etc/init.d/nginx reload
* Reloading nginx configuration nginx [fail]
# nginx -t
nginx: [emerg] could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64
nginx: configuration file /etc/nginx/nginx.conf test failed
# tail /var/log/nginx/error.log
2015/01/28 10:21:51 [emerg] 22362#0: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64
解决办法是在 nginx 配置文件的 http 段中增加如下配置:# vi /etc/nginx/nginx.conf
...
http {
...
server_names_hash_max_size 512;
server_names_hash_bucket_size 128;
...
}
...
Nginx 官方...
Windows NLB搭配IIS的ARR搭建高可用环境在现行的许多网络应用中,有时一台服务器往往不能满足客户端的要求,那么有没有什么办法解决服务器的高可伸缩性、高可用、高可靠性和高性能,提升服务器的SLA? 使用Windows Server 2008/R2中的网络负载平衡(Network Load Balancing,以下简称NLB)和IIS 7的ARP模块就是解决这个问题的方法。首先解释一下群集,群集是指一组服务器,通过彼此的协同作业,提供一个相同的服务或应用程序,用于提升服务或应用程序的可用性(availability)、可靠性(reliability)和可扩展性(scalability)。当群集内的服务器down掉以后,服务请求会转给其它群集内的节点,以实现24小时不中断的服务网络负载平衡(NLB)是Microsoft在所有 Windows 2000 Server、Windows Server 2003、Windows Server 2008和Windows Server 2008 R2 操作系统上提供的一种负载平衡技术。网络负载平衡(NLB)是将网络连接客户与服务器应用分布在同一个NLB群集内的多个服务器上。NLB允许添加额外的服务器,因此具备了可扩展性。此外NBL允许用户替换运行不良的服务器,从而确保了可靠性。NBL对于需要将多个客户请求分布在一组服务器上的企业来说至关重要。特别是它能够确保运行在互联...
在安装编译webbench的时候,出现如下错误信息ctags *.cinstall -s webbench /usr/local/bininstall -m 644 webbench.1 /usr/local/man/man1install: 无法创建普通文件"/usr/local/man/man1": 没有那个文件或目录make: *** [install] 错误 1意思是说缺少ctags命令,我没有装了,运行以下命令即可#: yum install ctags#: mkdir /usr/local/man -pwebbenchwebbench是Linux下的一个网站压力测试工具,最多可以模拟3万个并发连接去测试网站的负载能力。下载地址可以到google搜,我这里给出一个下载地址:http://soft.vpser.net/test/webbench/webbench-1.5.tar.gz这个程序更小,解压后不到50K,呵呵安装#tar zxvf webbench-1.5.tar.gz#cd webbench-1.5#make && make install会在当前目录生成webbench可执行文件,直接可以使用了用法:webbench -c 并发数 -t 运行测试时间 URL如:webbench -c 5000 -t 120 http://www.163.comPS:关于ctags信息,可以运行命令了解一下NAME ctags - Generate tag files for source codeSYNOPSIS ctags [options] [file(s)] &nb...
最新评论