在使用vmwareworkstation克隆一个虚拟机时需要对主机名称进行修改,方法如下:1)修改/etc/sysconfig/network中的hostname#vi/etc/sysconfig/networkHOSTNAME=centOS2修改network的HOSTNAME为需要命名的主机名centOS22)重新启动系统即可看到主机名已经修改为centOS2了
分类:
其他好文 时间:
2014-08-06 23:16:42
阅读次数:
421
mysql5.1.60编译安装 1、tar -zxvf mysql* 2、./configure 之前要make clean ./configure --prefix=/home/shk/mysql-5.1.60 \ --enable-local-infile \ --with-unix-so...
分类:
数据库 时间:
2014-08-06 22:15:52
阅读次数:
399
转:http://xn--ghqyhzj.com/post-21537.html本文针对LNMP的PHP 版本ver 5.3.6 or Higher,其它未测试过。1. 使用不同端口或php-fpm.sock启动多个php-fpm主进程假设使用不同的配置文件启动3个创建sock监听的PHP-FPM主...
分类:
Web程序 时间:
2014-08-06 22:05:02
阅读次数:
275
所谓集群,就是把多台服务器集合起来,对外提供一个接口访问,对用户来说完全透明,常用的办法就是前端放一个服务器,将用户请求分发到不同的服务器,大致有以下几种方案 1)采取DNS轮询:将用户的连接解析到不同的服务器上,这会产生一个问题,如果一个服务器宕掉,DNS无法及时更新,就会出现问题 ...
分类:
其他好文 时间:
2014-08-06 21:44:22
阅读次数:
383
基本环境系统:centos6.4nginx-1.2.0mysql-5.5.13php-5.4.9[root@localhost~]#servicehttpdstop//确认httpd服务已关闭[root@localhost~]#servicemysqldstop//确认系统中的mysql数据库没有启动[root@localhost~]#yum-ygroupinstall"Development//安装开发环境和开发库libraries"..
分类:
其他好文 时间:
2014-08-06 19:30:52
阅读次数:
331
安装php扩展软件#哈稀函数库[root@localhost~]#tar-zxvfmhash-0.9.9.9.tar.gz[root@localhostmhash-0.9.9.9]#cdmhash-0.9.9.9[root@localhostmhash-0.9.9.9]#./configure[root@localhostmhash-0.9.9.9]#make[root@localhostmhash-0.9.9.9]#makeinstall#处理中文各种编码之间的..
分类:
其他好文 时间:
2014-08-06 19:29:22
阅读次数:
286
1、首先,要有一张CentOS 6.4的安装介质,使用介质启动电脑出现如下界面界面说明:Install or upgrade an existing system 安装或升级现有的系统install system with basic video driver 安装过程中采用基本的显卡驱动Rescu...
分类:
其他好文 时间:
2014-08-06 14:09:31
阅读次数:
348
不如Ubuntu, 默认yum install sshpass无法安装sshpass,需要用下面的步骤:cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:Strahlex/CentOS_CentOS-6/home:Strahlex.repo
yum install sshpass...
分类:
其他好文 时间:
2014-08-06 10:27:31
阅读次数:
431
1. 这里使用的centos作为容器,所以首先下载centos的images# sudo docker pull centos2. 下载后运行一个centos的容器,这里使用centos6作为我测试的容器# sudo docker run --name=centos-ssh -i -t centos:centos6 /bin/bash3. 安装openssh-server服务软件包# yum in...
分类:
其他好文 时间:
2014-08-06 08:26:01
阅读次数:
294
1.CentOS的启动级别主要有,默认以leve5的方式启动#0-halt(DoNOTsetinitdefaulttothis)#1-Singleusermode#2-Multiuser,withoutNFS(Thesameas3,ifyoudonothavenetworking)#3-Fullmultiusermode#4-unused#5-X11#6-reboot(DoNOTsetinitdefaulttothis)#2.修改/etc/inittab文件将ini..
分类:
其他好文 时间:
2014-08-06 06:17:21
阅读次数:
225