搜索""的结果
nstallation of MySQL For security reasons, running the server as an unprivileged user and group is strongly encouraged. Issue the following (as root) to create the user and group: groupadd -g 40 mysql &&
useradd -c "MySQL Server" -d /srv/mysql -g mysql -s /bin/false -u 40 mysql
If the MySQL server is not needed, it is possible to build only the client libraries of MySQL. To do this you need to add -DWITHOUT_SERVER=ON to the cmake command below. MySQL contains an embedded server library. By default, it is built as a statically linked library, libmysqld.a, but by applying the optional patch, a shared version of this library can be built. The library is needed by certain applications, such as Amarok and it is recommend to use the shared libraries whenever it is possible. There are numerous o...
再编译安装cmake之前,已经将编译安装了最新版的GCC 4.8.1与最新版内核 Kernel 3.11.6从cmake官网下载最新的cmake版本, 下载的是cmake-2.8.10.2.tar.gz,地址http://www.cmake.org/cmake/resources/software.html1、解压cmake-2.8.12.tar.gz #:tar -xvf cmake-2.8.12.tar.gz2、在cmake-2.8.10.2同级目录下新建一个编译目录 #:mkdir cmake-bulid #:cd cmake-build3、编译cmake #:.././bootstrap --prefix=/usr#:gmake#:make install查看cmake是否安装成功: cmake --versionoutput: cmake version 2.8.10.2恭喜你,安装成功了。
yum 时提示Transaction Check Error的问题在用yum install 时 出现 Transaction Check Error 是因为软件冲突导致的。以下红色部分就是冲突的软件,如果是rpm安装的,可以直接rpm 卸载掉,重新yum install 安装。安装包冲突了,卸载掉mysql-5.0.95-1.el5_7.1.i386 再试试看
rpm -e mysql-5.0.95-1.el5_7.1.i386
或是
yum -y remove mysql-5.0.95-1.el5_7.1.i386[root@localhost ~]# yum install mysql Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: ftp.cuhk.edu.hk * extras: ftp.cuhk.edu.hk * updates: ftp.cuhk.edu.hkSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package mysql.i386 0:5.0.95-5.el5_9 set to be updated--> Processing Dependency: perl(DBI) for package: mysql--> Running transaction check---> Package perl-DBI.i386 0:1.52-2.el5 set to be updated--> Finished Dependency ResolutionDependencies Resolved============================================================================================================...
缓存服务varnish安装配置一、varnish优点1、数据存储,可以使用内存缓存,也可以使用磁盘大文件存储,减少小文件频繁读写2、充分利用多核cpu,支持http/1.1协议3、可以使用正则匹配缓存,配置灵活,思路清晰,管理端口,工具工具使用方便二、工作原理流程 三、安装及其配置官方地址https://www.varnish-cache.org/tar varnish-3.0.0.tar.gzcd varnish-3.0.0./configure --prefix=/usr/local/varnish3.0make && make install配置实例及说明vim /usr/local/varnish3.0/etc/varnish/default.vcl#设置后端服务backend test1 { .host = "192.168.100.5"; .port = "80"; .connect_timeout = 1s; .first_byte_timeout = 5s; .between_bytes_timeout = 2s;}backend test2 { .host = "192.168.100.6"; .port = "80"; .connect_timeout = 1s; .first_byte_timeout = 5s; .between_bytes_timeout = 2s;}#定义负载均衡director lb_test ra...
安装配置Varnish3.0手记 在内网的vps上安装Varnish的最新版3.0来用做测试Varnish有centos下的rpm和ubuntu下的deb二进制包下载,但我选择的是源码编译安装先下载 wget http://repo.varnish-cache.org/source/varnish-3.0.0.tar.gztar -xzvf varnish-3.0.0.tar.gz yum install gcc yum install gcc-c++ libstdc++-develyum install -y httpd-devel pcre perl pcre-devel zlib zlib-devel GeoIP GeoIP-devel Varnish需要pcre支持,如果服务器没有安装pcre-devel会提示需要指定prce目录。Centos服务器上使用yum install pcre-devel安装 解压varnish进行编译安装cd varnish-3.0.0./autogen.sh./configure --prefix=/usr/local/varnish PKG_CONFIG_PATH=/usr/lib/pkgconfig makemake install安装成功后,安装的目录是cd /usr/local/varnish/sbin./varnishd -V 查看版本,看是否安装成功测试varnish先编辑配置文件vi /usr/local/varnish/etc/varnish/default.vcl # This is a basic VCL configuration file for varnish. See the vcl(7)# man page for ...
varnish-3.0.2 安装配置文件 varnish的介绍很多,这里就不做过多的说明,直接贴上我的安装及配置方法,希望会对大家有用,仅供参考安装方法如下: wget -S http://repo.varnish-cache.org/source/varnish-3.0.2.tar.gz
tar zxvf varnish-3.0.2.tar.gz
cd varnish-3.0.2
./configure --prefix=/usr/local/varnish --enable-dependency-trackin --enable-debugging-symbols --enable-developer-warnings
make
make install
varnish No package 'libpcre' found
说是缺少 pcre。我安装nginx的时候用到了pcre 安装了的
使用以下办法
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig backend www {
.host = "127.0.0.1";
.port = "80";
}
backend blog {
.host = "127.0.0.1";
.port = "80";
}
director webbeta round-robin {
{.backend=www;}
{.backend=blog;}
}
acl purge {
"127.0.0.1";
"localhost";
}
sub vcl_recv
{
if (req...
Linux Shell删除一个目录下所有的文件夹
#!/bin/bash
direc=$(pwd)
for dir2del in $direc/* ; do
if [ -d $dir2del ]; then
rm -rf $dir2del
fi
done
如何查看Oracle数据库实例状态?set oracle_sid=你要查询的实例service名称
sqlplus / as sysdba
SQL>select status from v$instance; 01show sga02 03set wrap off04set linesize 40005-- 查看正在运行的后台进程06select * from v$bgprocess;07select * from v$bgprocess where paddr<>'00';08 09--查看数据库的物理组成:文件情况10select * from v$controlfile;11select * from v$datafile;12select * from v$logfile;13 14--查看实例内存情况15show parameter sga16show parameter shared17show parameter db_cache18show parameter log19 20alter system set db_cache_size=64m; //可以动态修改sga中内存区的大小,但是不能超过sga的最大内存21 22select * from dept;23 24--表空间管理25CREATE TABLESPACE tbs226DATAFILE 'D:\oracle\oradata\APTECH\tbs2_01.dbf'27SIZE 50M;28 29conn sys/admin as sysdba(重启数据库必须以sys用户登陆)30 31shutdown immediate(关闭数据库)32启动数据库的三个步骤:33startup nomount (启动实例)34alter database mount;(装载数据库,读取控制文件)35alter databas...
Upgrade VMware ESXi 5.1 to ESXi 5.5 on a Gigabyte Brix using esxcliLeave a reply BackgroundBetween ESX 5.1 and ESXi 5.5, VMware removed the bundled driver for the Realtek RTL8111E NIC, which is embedded in the Gigabyte Brix.This means that if you try to boot a normal ESXi 5.5 installer, it won’t find the NIC driver and will refuse to install/upgrade your ESXi 5.1 instance.How to upgradeTo get around this limitation, you can do one of two things:Upgrade by creating an ESXi 5.5 install ISO that includes the net-r8168 driver packageUpgrade directly via the esxcli command-line (which is what this guide covers)Upgrading via the command linePre-requisitesIf you want to do this remotely, you’ll need to enable SSH on the Brix. You can do this via the console, or if you run your Brix headless, you can do it via PowerCLI with these commands:$esxihost="YourEsxiServerHostName"
Connect-viserver $esxihost
Start-VMHostService -HostService (Get-VMHost -Name $esxihost | Get-VMHostServ...
最新评论