本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
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 是附件文件。
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.> 一般有这种情况,是用不同用户启动过...
GridLink是WebLogic 10.3.4版本推出的新特性,引入Jdbc 11g version驱动,全面支持Oracle 11G RAC AWM的特性,包括我之前写的SCAN新特性。至今WebLogic提供了五种配置对于Jdbc Thin方式连接Oracle RAC,如下:1.GridLink Data Sources 2.Configuring Connections to Services on Oracle RAC Nodes(XA)3.Configuring Connections to Services on Oracle RAC Nodes(No-XA)4.Multi Data Sources with Global Transactions5.Multi Data Sources without Global Transactions其中GridLink Data Sources方式支持使用services,实现Load Balancing(负载均衡)和Failover(故障转移)。Weblogic Server GridLink是WLS10.3.4新推出的Data Source类型,提供了针对Oracle RAC数据库与WLS之间的连接功能。GridLink通过Oracle通知服务(ONS)来获取Oracle RAC实例的状态变化。WLS可以通过Oracle RAC灵活的数据库服务设计来满足其需求,也可以由数据库服务的增加而扩展而不需要关注RAC 集群中的物理结构变化。GridLink提供了以下功能:1.简化和统一了对RAC连接配置的模块。2.支持Fast Connection Filover(FCF)。3.支持Runtime Connection Load Balancing(RCLB)。4.支持Single ...
Installing Magento 2 with Composer With the Magento 2 Developer Beta out in the open, it’s time to revise our old guide and have a fresh, clear, step-to-step guide which helps with installing Magento 2 with Composer.IntroductionIn June, we hosted Tim which wrote a guide on installing Magento 2 with Composer on an nginx webserver. The Magento 2 project structure has changed a lot and that guide is not really applicable anymore.There is official documentation. This is merely an alternative step-to-step guide if you just want to get to it without reading the documentation thorough. We plan to keep this guide updated with newer Magento 2 code drops.This guide assumes you already have a functioning LAMP-stack with the minimum Magento 2 requirements (>= PHP 5.4.11 & &...
tomcat jsp网站从wiindows迁移到Linux后,打开程序,提示 数据库查询没有成功,检查tomcat 日志发现以下错误:ERROR UserOper:385 - select a.*,b.CORP_NAME,b.PARENT_ID,b.SYSTEM_LEVEL from tab_sys_user a,V_corp b where a.CORP_ID=b.CORP_ID order by b.order_code,a.truenamecom.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'sjmobile.V_corp' doesn't exist ERROR UserCache:69 - findDatacom.tw.publicclass.base.CException: 数据库查询没有成功经测试发现,是mysql 严格限制了sql语句的大小写。修改mysql 配置文件里面的内容,增加下面一行之后解决,报错误。[mysqld] lower_case_table_names=1解决登陆报错问题后,又发现web网站不能显示内容。报错如下:09-Jul-2016 02:08:45.111 WARNING [http-nio-9080-exec-5] org.apache.jasper.compiler.Compiler.removeGeneratedClassFiles Failed to delete generated class file [/usr/local/tomcat/work/Catalina/localhost/ROOT/org/apache/jsp/jsp/system/myAccount_005fnew_jsp.class]09-Jul-2016 02:08:45.111 WARNING [http-nio-9080-exec-5] org.apache.jasper.compiler.Comp...
最新评论