记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
Centos/RHEL安装没setup命令 最小化装完centos 5.5/RHEL系统后,发现用setup的配置命令没有了.12[root@localhost ~]# setup-bash: setup: command not found这时就要手动去安装这个快速配置程序了.1[root@localhost ~]# yum install setuptool ntsysv system-config-network system-config-keyboard# yum install setuptool发现setup命令可以用了,可是系统服务,网络配置,键盘配置,时区配置不见了.安装下这几个配置程序安装系统服务配置# yum install ntsysv安装网络配置# yum install system-config-network安装键盘时区配置# yum install system-config-keyboardsystem-config-network system-config-keyboard这两个包的依赖很多,能手工改就手动改吧,没特殊应用就不用装了.本方法适用于centos/redhat 5.x
linux 多网卡同网段IP配置方法 linux 多网卡同网段IP配置方法  普通方法会导致一个通一个不通,两个网卡不能同时使用,只要像windows那样加上跳点就行了,命令如下,加到 /etc/rc.local里12345678ifconfig eth0 IP地址1 netmask 子网掩码 upifconfig eth1 IP地址2 netmask 子网掩码 uproute del defaultip route add default via 网关ip route add default via 网关 dev eth0 src IP地址1 table 100ip route add default via 网关 dev eth1 src IP地址2 table 200ip rule add from IP地址1 table 100ip rule add from IP地址2 table 200
Squid3.0缓存服务器配置全记录 Squid3.0缓存服务器配置一台缓存服务器对多台虚拟主机  第一步:  123wget http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE25.tar.gztar zxvf squid-3.0.STABLE25.tar.gzcd squid-3.0.STABLE25123456789101112131415161718192021222324252627./configure --prefix=/usr/local/squid3 \--enable-async-io=100 \--with-pthreads \--enable-storeio="aufs,diskd,ufs" \--enable-removal-policies="heap,lru" \--enable-icmp \--enable-delay-pools \--enable-useragent-log \--enable-referer-log \--enable-kill-parent-hack \--enable-arp-acl \--enable-default-err-language=Simplify_Chinese \--enable-err-languages="Simplify_Chinese English" \--disable-poll \--disable-wccp \--disable-wccpv2 \--disable-ident-lookups \--disable-internal-dns \--enable-basic-auth-helpers="NCSA" \--enable-stacktrace \--with-large-files \--disable-mempools \--with-filedescriptors=65536 \--enable-ssl \--enable-x-accelerator-varmakemake install第二步...
 
0

ESXi 5 and VNC

发表者:分类:云计算容器2012-01-31 09:41:20 阅读[4729]
ESXi 5 and VNCHello, I have configured my ESXi 5 VMs for VNC - to enable me to VNC to the console for each of the VMs. But I cannot work out how to obfuscate the password, I wonder if anyone can help? I have set it up as follows: Stop each VMLog in to the ESXi host using SSHAdd the following to the VM's .vmx file: RemoteDisplay.vnc.enabled = "TRUE" RemoteDisplay.vnc.port = "5901"RemoteDisplay.vnc.password = "password"When I restart the VM, I see that the following line has been added to the .vmx file RemoteDisplay.vnc.key = "long random string blah blah blah......." Now, when I try to connect to the server using a VNC client, I am not being allowed in. It is not asking for a password, it is showing me a blank screen.You configuration works, but you need to open the firewall on ESXi... First step is build a new rule like this:~ # cat /etc/vmware/firewall/vnc.xml <!-- Firewall configuration information for VNC ...
Linux VPS Nginx+PHP 安装ionCube 今天下载了一个whmcs,在自己的VPS上测试一下,但是提示:Site error: the file /home/test/whmcs/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.上面的提示是没有安装ionCube的原因。首先,执行uname -a 查看系统是32位还是64位,打开http://www.ioncube.com/loaders.php页面根据Linux是32位还是64位下载适当的软件包,比如我的是32位的,切换到/usr/local/目录,执行cd /usr/local ,wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz 下载,再执行tar zxvf ioncube_loaders_lin_x86.tar.gz 解压软件包。修改/usr/local/php/etc/php.ini 在文件尾部添加如下代码:[ionCube Loader]zend_extension="/usr/local/ioncube/ioncube_loader_lin_5.2.so"如果以前装有Zend Optimizer,安装ionCube会和Zend Optimizer发生冲突,再执行/usr/local/php/php-fpm reload 时会发生如下错误:The Loader must appear as the first entry in the php.ini file in Unknown on line 0须将Zend Optimizer的代码删除,如LNMP中是如下代码...
用 VNC 访问 VMware ESXi 虚拟机控制台在VM ESXI 上面安装好系统,想让虚拟机使用VNC来远程。VMware ESXi 提供了免费的图形化客户端工具 VMware vShpere Client,用 vShpere Client 连接 VMware ESXi 后关闭虚拟机,然后按照下面步骤编辑虚拟机的配置文件:鼠标右击选择 “Edit settings”;选择 “Options” 标签页;在 “Advanced” 下选择 “General”;点击 “Configuration Parameters” 按钮;最后加入如下配置参数:RemoteDisplay.vnc.enabled = "TRUE" RemoteDisplay.vnc.password = "vpsee.com" RemoteDisplay.vnc.port = "5900" 重启虚拟机后,就可以使用vnc 客户端来远程了。
ڵȨ鿴־
proxmox  虚拟机配置网卡桥接与添加网卡一,配置虚拟机网卡桥接,安装好proxmox 后,默认只桥接vmbr0,现在再添加第二个桥接网卡vmbr1#:vim /etc/network/interfaces添加以下内容auto vmbr1iface vmbr1 inet static        address 10.10.10.10        netmask 255.255.255.0        gateway 10.10.10.1        bridge_ports eth1        bridge_stp off        bridge_fd 1配置完成后,重启网络服务#: /etc/init.d/networking restart然后到proxmox 后台查看已经添加好第二个网卡然后给编号 103的虚拟机添加第二个网卡。#:qm set 103 --vlan1 rtl8139=EE:5B:1C:2F:EA:21proxmox 后台查看虚拟机已经添加好第二个网卡
 
0
Nginx 完美重启脚本vi /etc/init.d/nginx然后输入如下内容,你将能使用service nginx startservice nginx stopservice nginx restartservice nginx reload#!/bin/sh## nginx - this script starts and stops the nginx daemin## chkconfig:   - 85 15 # description:  Nginx is an HTTP(S) server, HTTP(S) reverse \#               proxy and IMAP/POP3 proxy server# processname: nginx# config:      /usr/local/nginx/conf/nginx.conf# pidfile:     /usr/local/nginx/logs/nginx.pid# Source function library.. /etc/rc.d/init.d/functions# Source networking configuration.. /etc/sysconfig/network# Check that networking is up.[ "$NETWORKING" = "no" ] && exit 0nginx="/usr/local/nginx/sbin/nginx"prog=$(basename $nginx)NGINX_CONF_FILE="/usr/local/nginx/conf/nginx.conf"lockfile=/var/lock/subsys/nginxstart() {    [ -x $nginx ] || exit 5    [ -f $NGINX_CONF_FILE ] ||...
CentOS 5 + rsync 同步2台服务器的文件Always use rsync over sshSince rsync does not provide any security while transferring data it is recommended that you use rsync over ssh . This allows a secure remote connection. Now let us see some examples of rsync.rsync command common options--delete : delete files that don't exist on sender (system)-v : Verbose (try -vv for more detailed information)-e "ssh options" : specify the ssh as remote shell-a : archive mode-r : recurse into directories-z : compress file dataTask : Copy file from a local computer to a remote serverCopy file from /www/backup.tar.gz to a remote server called openbsd.nixcraft.in$ rsync -v -e ssh /www/backup.tar.gz jerry@openbsd.nixcraft.in:~Output:Password: sent 19099 bytes received 36 bytes 1093.43 bytes/sec total size is 19014 speedup is 0.99Please note that symbol ~ indicate the users home directory (/home/jerry).Task : Copy file from a remote server to a local computerCopy file /home/jerry/webroot.txt f...
    总共268页,当前第233页 | 页数:
  1. 223
  2. 224
  3. 225
  4. 226
  5. 227
  6. 228
  7. 229
  8. 230
  9. 231
  10. 232
  11. 233
  12. 234
  13. 235
  14. 236
  15. 237
  16. 238
  17. 239
  18. 240
  19. 241
  20. 242
  21. 243