本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
 
0

Install GFS2 in CentOS 6.5

发表者:admin分类:应用服务2017-07-13 15:23:28 阅读[1903]
Install GFS2 In CentOS 6.5 In computing, the Global File System 2 or GFS2 is a shared disk file system for Linux computer clusters. GFS2 differs from distributed file systems (such as AFS, Coda, InterMezzo, or GlusterFS) because GFS2 allows all nodes to have direct concurrent access to the same shared block storage. In addition, GFS or GFS2 can also be used as a local filesystem. GFS  has no disconnected operating-mode, and no client or server roles. All nodes in a GFS cluster function as peers. Using GFS in a cluster requires hardware to allow access to the shared storage, and a lock manager to control access to the storage. The lock manager operates as a separate module: thus GFS and GFS2 can use the Distributed Lock Manager (DLM) for cluster configurations and the “nolock” lock manager for local filesystems. Older versions of GFS also support GULM, a server based lock manager which implements redundancy via failover.Here is my t...
Nginx配置文件主要分成四部分:main(全局设置)、server(主机设置)、upstream(上游服务器设置,主要为反向代理、负载均衡相关配置)和 location(URL匹配特定位置后的设置),每部分包含若干个指令。    main部分设置的指令将影响其它所有部分的设置;server部分的指令主要用于指定虚拟主机域名、IP和端口;upstream的指令用于设置一系列的后端服务器,设置反向代理及后端服务器的负载均衡;location部分用于匹配网页位置(比如,根目录“/”,“/images”,等等)。    他们之间的关系式:server继承main,location继承server;upstream既不会继承指令也不会被继承。它有自己的特殊指令,不需要在其他地方的应用。######Nginx配置文件nginx.conf中文详解##### #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数。 worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log /usr/localinx/logs/error.log info; #进程pid文件 pid ...
应用部署到weblogic下(Tomcat下无问题),filter执行时报错: java.lang.IllegalStateException: Cannot resize buffer - 299 bytes have already been written (Servlet 2.3, sec. 5.1)at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:346)at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74)at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110)at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:40)at jsp_servlet.__index._jspService(__index.java:65)原因:调用了response.sendRedirect()之后,再调用了filterChain.doFilter(request, response)解决:修改代码,确保 sendRedirect 之后 return 或 doFilter 之前无 sendRedirect。Jetty下,post 1个表单数据时报错: java.lang.IllegalStateException: Form too large210799>200000原因: Jetty对form post data的大小有限制,默认为200000bytes解决: 修改Jetty的默认限制值。1. Jetty: 默认限制为200000bytes(约200KB).修改默认限制值的方法如下:参考:http:/...
下载Nginx到官网下载源码文件,地址:http://nginx.org/en/download.html,选择最新版本。本人下载的地址为:http://nginx.org/download/nginx-1.10.2.tar.gz,可用wget命令下载,也可以在windows系统上下载好再传到linux上。卸载httpd如果系统默认安装了httpd服务,卸载之。不卸载也没关系,这里只是方便默认80端口的处理。yum -y remove httpd解压tar -xzvf nginx-xxxxxx.tar.gz安装编译器和依赖库yum install gcc gcc-c++ zlib-devel pcre-devel openssl-devel openssl-libs openssl -y如果已经安装,就不必了安装前配置cd命令转到解压后的目录下。./configure --prefix=/usr/local/nginx这样安装时系统就会把Nginx安装到/usr/local/nginx目录下。编译make安装make install安装完成,接下来配置环境变量以后就不用使用绝对路径来操作Nginx了:vim /etc/profile.d/http.sh加入以下内容:export PATH=/usr/local/nginx/sbin:$PATH生效配置:source !$启动Nginxnginxnginx -s 后跟stop、reload来关闭和重载nginx,直接运行nginx则启动服务。  如果启动时提示端口被占用,则需要找出被占用的进程,或者更改/usr/local/nginx/conf/nginx.conf文件里的侦听端口。访问Nginx在...
Centos6配置SMTP发送邮件与附件方法注:需要先开通相关的邮件账号的smtp 功能,这样,才可以使用客户端软件发邮件。安装客户端软件。[root@cw ~] #:yum install mailx[root@cw ~] #:wget http://ftp5.gwdg.de/pub/opensuse/repositories/home:/billcavalieri:/QEMU/RedHat_RHEL-6/x86_64/sharutils-4.7-6.3.x86_64.rpm[root@cw ~] #:rpm -ivh sharutils-4.7-6.3.x86_64.rpm配置mail.rc文件,增加smtp账号信息:[root@cw ~] #:vi /etc/mail.rcset sendcharsets=iso-8859-1,utf-8set from=yy@139.comset smtp=smtp.139.com:25set smtp-auth-user=yy@139.comset smtp-auth-password=yyyyyyyset smtp-auth=login具体说明:from: 对方收到邮件时显示的发件人smtp: 指定第三方发送邮件的smtp服务器地址smtp-auth: SMTP的认证方式。默认是LOGIN,也可改为CRAM-MD5或PLAIN方式smtp-auth-user: 第三方发邮件的用户名smtp-auth-password: 用户名对应密码然后测试发邮件与附件,mreport="/home/ftp/report.txt"echo  "邮件正文内容" | mailx -v -s "邮件主题" -a $mreport 15871@139.com其中$mreport 是附件文件。
 
0

AMH 4.2 PHP升级工具

发表者:admin分类:应用服务2017-02-11 17:17:10 阅读[1914]
amh4.2是一款Linux控制面板 ,免费版的4.2就停止开发了。目前一直使用的是php5.3.27 大家可以使用工具很方便的升级PHP版本 复制代码wget http://vpsug.aliapp.com/script/amhupgrade.shchmod a+x amhupgrade.sh./amhupgrade.sh 2>&1 | tee php.log界面如图   输入你要升级的版本,版本号可以从http://php.net/downloads.php获得 如升级到5.5.29   接下来是选择节点。 根据你的VPS。可以选择HK/US/JP/CN.这里使用CN   然后就会自动升级。 升级完成会自动重启amh 当你看到Done!!!就说明安装完了。可以到面板去看你的PHP版本了。 -------------------------------------------------------------- 注意:PHP升级版本后原有拓展不能使用,如Pdo,mysqli,Zend等,需要手动编译。 --------------------------------------------------------------
前言     HTTPS 即将在 2017 年获得广泛的普及和支持,这里介绍一下 Apache Httpd 设置 HTTPS 并开启 HTTP/2 (以下会简称 h2)的教程。 不过呢,在目前的条件下,个人还是建议一些强 Apache Httpd 的环境例如 LAMP 可以考虑前面加一层 Nginx,来更灵活的实现 HTTPS + HTTP/2 的新特性,例如目前 Apache Httpd 对 CHACHA20-POLY1305 的算法弄起来就灵活。   准备   Apache Httpd ≥ 2.4.17 ,Apache Httpd 从 2.4.17 开始支持 mod_http2 ,并且编译时加入 --enable-http2OpenSSL ≥ 1.0.2 浏览器客户端例如 Chrome 51(2016 年 5 月 31 日发布)之后,已经不支持对没有 ALPN 协议网站的 h2 支持,OpenSSL 1.0.2 起开始支持 ALPN 协议。nghttp2 ≥ 1.12,其为是基于 C 实现的 HTTP/2 库,为实现 Apache Httpd 支持 h2 所必须(编译、Win二进制)Apache Httpd ≥ 2.4.25 ,如果是自己编译或者 Win 采用二进制编译包的 Apache Httpd 并且开启 mod_http2 支持,版本必须大于 2.4.25,因为之前的版本存在 DDOS 漏洞   非编译       Debian     Debian 在 stretch(9)才有 Apache Httpd(apa...
Linux windows php5.4+oracle instant clients OCI安装过程。 See the version for PHP 5.5 and Oracle Database 12c The easiest way to configure PHP to access a remote Oracle Database is to use Oracle Instant Client libraries. This note describes how to install PHP with the OCI8 Extension and Oracle Instant Client on Windows and Linux. The free The Underground PHP and Oracle Manual explains other installation options and contains more detail.OCI8 is the PHP extension for connecting to Oracle Database. OCI8 is open source and included with PHP. The name is derived from Oracle's C "call interface" API first introduced in version 8 of Oracle Database. OCI8 links with Oracle client libraries, such as Oracle Instant Client.Oracle Instant Client is a free set of easily installed libraries that allow programs to connect to local or remote Oracle Database instances. To use Instant Client an existing database is needed - Instant Client does not include one. Typically t...
RHEL6.5,Centos6.5配置NTP服务器并调整时区,供内网服务器使用NTP同步时间内部有一台web服务器可以上外网,但是内网其它很多机器不能上网,需要同步时间,就把这台web服务器作成NTP服务器供内部网络使用。网上有不少资料,但是都是人云亦云,实际配置后,根本不能用,其实很简单。至于什么iptables防火墙,selinux,修改时区tzselect命令 ,自行脑补。这里我将硬件时间与系统时钟,修改成一样的,采用本地时钟。[root@web ~] #   vi /etc/adjtime-4.943613 1478145537 0.0000001478145537LOCAL将UTC修改成LOCAL。注意系统时间不能相差太大。首先安装软件,比较简单,不说了。[root@web ~] #  yum install ntp* -y修改NTP服务器端配置文件:[root@web ~]# cat /etc/ntp.conf # For more information about this file, see the man pages# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).driftfile /var/lib/ntp/drift# Permit time synchronization with our time source, but do not# permit the source to query or modify the service on this system.restrict default nomodify notrap noqueryrestrict -6 default nomodify&...
/user_projects/domains/base_domain/config/configCache is not readable.        at weblogic.management.bootstrap.BootStrap.find(BootStrap.java:474)        at weblogic.management.bootstrap.BootStrap.find(BootStrap.java:480)        at weblogic.management.bootstrap.BootStrap.getConfigFiles(BootStrap.java:458)        at weblogic.management.provider.internal.ConfigurationVersion.<init>(ConfigurationVersion.java:76)        at weblogic.management.provider.internal.EditAccessImpl.<init>(EditAccessImpl.java:192)        Truncated. see log file for complete stacktrace> <Oct 31, 2016 3:32:56 PM CST> <Error> <Management> <BEA-141265> <Could not get configuration lock used to serialize access to configuration files.> 一般有这种情况,是用不同用户启动过...
    总共46页,当前第18页 | 页数:
  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13
  7. 14
  8. 15
  9. 16
  10. 17
  11. 18
  12. 19
  13. 20
  14. 21
  15. 22
  16. 23
  17. 24
  18. 25
  19. 26
  20. 27
  21. 28