记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
Linux下SVN部署/安全及权限配置,实现web同步更新内容目录:1.SVN版本库目录说明2.SVN服务配置文件:svnserve.conf3. 详细权限配置文件authz:本文包含以下内容:SVN服务器安装SVN权限管理SVN使用SASL加密SVN上传时同步其它目录 需求在WEB线上版本管理的基础上,能够在代码上传之后,立刻通过WEB访问,查看修改效果;同时,保证数据的安全性; SVN安装 SVN服务器有2种运行方式:独立服务器和借助apache运行。svnserve和apache相比是轻量级的,也比较简单,svnserve包含在subversion里面,所以只要安装了subversion就相当于安装了一个小型的svn服务器。它使用自己的一套协议通信。例如访问apache时使用 http:// 前缀,而svnserve使用 svn:// 前缀.这里介绍的是通过独立服务器方式运行,优点是简单小巧。如果是支持较大规模的开发,还是推荐使用apache服务器方式;这里使用svnserver安装; 1.首先为SVN单独创建一个用户,这样可以使用操作系统的安全特性; 2.将svnadmin这个用户加入到sudu组; 3.安装: sudo apt-get install subversion4.创建测试目录: mkdir /home/svnadmin/test5.创建版本库: svnadmin create /home/svnadmin/test4. 导入项目例如现在有个...
ubuntu下安装l2tp进行vpn拨号 Connecting to a L2TP/IPSec VPN from Ubuntu desktop In my previous post, “Secure IPsec/L2TP VPN for on the road android devices” I have written on how to set up an IPsec/L2TP VPN server and connect to it from any android device. I was really impressed how simple it was to configure a secure VPN tunnel with IPSEC, so I decided to go a bit further and try to use the same tunnel with Ubuntu Desktop. Unfortunately the IPsec/L2TP client side isn’t well supported under Linux, this is maybe beacuse everyone is using OpenVpn. At the end I stumbled into Werner Jaeger launchpad page, where I found aGUI to manage IPsec/L2TP connection from Ubuntu Desktop, the connection set up is very straightforward and without glitches. Along with a simple PSK configuration, the GUI allow to use certificate for authentication and more advanced L2TP options as redial- timeout and attempts and of course all important PPP options.A more extended guide can be found...
centos默认使用UTC时区,中国用户需要修改成自己的时区,这篇文章主要介绍了centos更改时区的方法,需要的朋友可以参考下对于中国用户,如果centos默认使用UTC时区,那时间相差八个小时,其实可以通过简单的设置,变为中国时区,这时候机器上的时间和本地手表上的时间就是一致的。执行如下命令:cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime就可以了,如果没有看到/Asia/Shanghai文件,手动执行以下 tzselect ,按照提示选择即可。完毕![root@oracle ~]# timedatectl       Local time: 五 2015-11-06 16:32:18 CST  Universal time: 五 2015-11-06 08:32:18 UTC        RTC time: 五 2015-11-06 08:32:23        Timezone: Asia/Shanghai (CST, +0800)     NTP enabled: yesNTP synchronized: yes RTC in local TZ: yes      DST active: n/aWarning: The RTC is configured to maintain time in the local timezone. This         mode is not fully supporte...
用tzselect和tzconfig可以设置时区。于是,先用tzselect试了下,结果提示什么root@ubuntu:etc# tzselect /usr/bin/tzselect: line 171: /etc/iso3166.tab: No such file or directory/usr/bin/tzselect: time zone files are not set up correctly在网上找了下资料没什么头绪,又试了下tzconfig,结果又提示WARNING: the tzconfig command is deprecated, please use: dpkg-reconfigure tzdataCentos 系统可以使用yum reinstall tzdata 重新安装软件包。最后用dpkg-reconfigure tzdata才成功了,接下来再配置好/etc/ntp.conf才算结束。 #server 0.ubuntu.pool.ntp.org #server 1.ubuntu.pool.ntp.org #server 2.ubuntu.pool.ntp.org #server 3.ubuntu.pool.ntp.org server ntp.sjtu.edu.cn
 
0

rsync的断点续传

发表者:admin分类:应用服务2015-11-06 09:48:44 阅读[2291]
经常copy大文件,由于服务器、路由等网络的不确定性,老是出现remote server not responding.于是查了下资料,发现rsync这个工具支持断点续传功能,这里介绍一下。 rsync也分服务器端和客户端,使用man查看帮助信息,我们发现rsync有六种不同的工作模式:       Local:  rsync [OPTION...] SRC... [DEST]       Access via remote shell:         Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST]         Push: rsync [OPTION...] SRC... [USER@]HOST:DEST       Access via rsync daemon:         Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST]               rsync [OPTION...] rsync://[USER...
Oracle启动监听报错:The listener supports no services解决 $ lsnrctl start报错提示:The listener supports no services The command completed successfully 如图所示: 这样启动后远程连接会报错: oracle ORA-12514:TNS:listener does not currently know of service requested in connect descriptor 问题原因:数据库实例没注册到listener 解决方法一: 在listener.ora里面添加了一行 SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orcl) (SID_NAME = orcl) ) ) 注:里面的orcl根据你安装的数据库实例名确定,我用此法解决了这个报错。 解决方法二: 登录数据库: $sqlplus / as sysdba 显示服务名: SQL>show parameter service_names 强制注册服务: SQL>alter system register; 查看监听状态: $lsnrctl status
Centos7/RHEL安装haproxy实现http与tcp负载均衡HAProxy提供高可用性、负载均衡以及基于TCP和HTTP应用的代理,支持虚拟主机,它是免费、快速并且可靠的一种解决方案。HAProxy特别适用于那些负载特大的web站点, 这些站点通常又需要会话保持或七层处理。HAProxy运行在当前的硬件上,完全可以支持数以万计的并发连接。并且它的运行模式使得它可以很简单安全的整合进您当前的架构中, 同时可以保护你的web服务器不被暴露到网络上。1、下载&安装haproxy:wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.20.tar.gz tar zxvf haproxy-1.4.20.tar.gz cd haproxy-1.4.20 uname -a //查看linux内核版本 make TARGET=linux26 PREFIX=/usr/local/haproxy make install PREFIX=/usr/local/haproxy2、编写haproxy.cfg文件,可适用于haproxy-1.5版本 :vi /usr/local/haproxy/haproxy.cfg粘贴如下内容至haproxy.cfg:global    maxconn 51200    chroot /usr/local/haproxy    uid 99    gid 99    daemon    #quiet    nbpro...
haproxy使用多内网ip做负载均衡突破64k连接(突破单ip 65535端口限制)  前言当我们使用haproxy 做负载均衡器的时候,负载均衡多个后端服务器,但是有一个问题,负载均衡后端的服务器的是需要占用haproxy机端口的.tcp的端口一共65535个除去保留端口,基本也就64k可用的样子.那么f5之类套着硬件皮的负载均衡器是怎么做到的可以负载几十万的连接数的?其实f5机本身自己使用了多个内网ip地址,一个f5上的内网ip地址拥有连接后端64k连接的能力.那么haproxy支持这样的功能么,从而负载更高的连接数么?经过灿哥的分享,我们知道是可以的,只要给haproxy机配置多个lan内网ip,haproxy机可以通过多个lan内网ip去负载均衡后端服务器.一个内网ip去负载一台后端服务,这样一个haproxy内网ip就有了长64k连接的负载能力了.配置haproxy 用多个lan内网ip做负载均衡,以突破haproxy机只支持64k连接(突破单ip 65535端口限制)配置例子haproxy负载均衡机外网ip: 8.8.8.8haproxy内网ip1: 10.8.8.2haproxy内网ip2: 10.8.8.3haproxy内网ip3: 10.8.8.4后端web1内网ip: 10.8.8.10后端web2内网ip: 10.8.8.11后端web3内网ip: 10.8.8.12server web1 10.8.8.10 : 80 check source&n...
Install Pen to configure Load Balance server. Pen is a light weight simple load balancer. This example shows to configure on the environment like follows(1) rackspace-jon [192.168.58.154] – Pen Server(2) rackspace-nfs01 [192.168.58.152] – Web Server#1(3) rackspace-nfs02 [192.168.58.153] – Web Server#2[root@rackspace-jon ~]# yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: centos-mirror.magsnet.net* extras: centos-mirror.magsnet.net* updates: centos-mirror.magsnet.netSetting up Install Processepel-release-6-8.noarch.rpm | 14 kB 00:00Examining /var/tmp/yum-root-G_GHvp/epel-release-6-8.noarch.rpm: epel-release-6-8.noarchMarking /var/tmp/yum-root-G_GHvp/epel-release-6-8.noarch.rpm to be installedResolving Dependencies–> Running transaction check—> Package epel-release.noarch 0:6-8 will be installed–> Finished Dependency ResolutionDependencies Resolved=======...
Zen Load Balancer 3.03 发布,TCP 负载均衡Zen Load Balancer 3.03 包含很多新特性、改进和 bug 修复。Zen 是一个基于 Debian 的发行版,主要用于实现 TCP 的负载均衡。可通过定制的脚本来检查后端的运行状态,通过创建 Zen 集群来实现高可用性。通过 rrd 监控服务器状态,使用基于 HTTPS 的界面进行轻松的性能管理、配置和路由表配置等等。相关链接Zen Load Balancer 的详细介绍:请点这里Zen Load Balancer 的下载地址:请点这里
    总共268页,当前第111页 | 页数:
  1. 101
  2. 102
  3. 103
  4. 104
  5. 105
  6. 106
  7. 107
  8. 108
  9. 109
  10. 110
  11. 111
  12. 112
  13. 113
  14. 114
  15. 115
  16. 116
  17. 117
  18. 118
  19. 119
  20. 120
  21. 121