- 博客(0)
- 资源 (23)
- 收藏
- 关注
Mysql connectorC++1.1.4RPM for Generic LinuxRHEL 5 x86(64bit
Mysql connectorC++1.1.4RPM for Generic LinuxRHEL 5 x86(64bit).rpm Orcle官网下载,可直接安装
2014-10-06
jre-7u5-linux-i586.tar.gz
tar zxvf jre-7u5-linux-i586.tar.gz -C ../software/
cd ../software
cp -rp jre1.7.0_05/ /usr/local/
vi /etc/profile
加入如下3条
JAVA_HOME=/usr/local/jre1.7.0_05/
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
PATH=$JAVA_HOME/bin:$PATH
. /etc/profile
测试java是否安装成功
chown -R root\: /usr/local/jre1.7.0_05/
java -version
java version “1.7.0_05″
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)
运行上面命令可能会出现如下错误,google了下,是selinux的问题导致的。
error :/usr/lib/libjvm.so: cannot restore segment prot after reloc: Permission denied .
use the command:
chcon -t textrel_shlib_t /usr/lib/libjvm.so
这是官方的提示
简单的做法是
setenforce 0
ok,java安装完毕
2012-07-01
tomcat-7.0.28
安装tomcat7
下载地址:http://tomcat.apache.com/
cd /usr/local/src/tarbag
tar zxvf apache-tomcat-7.0.28.tar.gz -C ../software/
cd ../software
cp -rp apache-tomcat-7.0.28/ /usr/local/
cd /usr/local/apache-tomcat-7.0.28/
设置环境变量
vi /etc/profile
加入如下两条
CATALINA_HOME=/usr/local/apache-tomcat-7.0.28/
PATH=$JAVA_HOME/bin:/usr/local/apache-tomcat-7.0.28/bin/:$PATH
. /etc/profile
启动服务
/usr/local/apache-tomcat-7.0.28/bin/catalina.sh start
或者
/usr/local/apache-tomcat-7.0.28/bin/startup.sh
netstat -lnt
发现了80开头的端口
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:759 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN
tcp 0 0 :::8009 :::* LISTEN
tcp 0 0 :::8080 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
curl http://192.168.1.205:8080
输出如下即告成功
Home
Documentation
Configuration
Examples
Wiki
Mailing Lists
Find Help
。。。。。。
关闭服务
/usr/local/apache-tomcat-7.0.28/bin/catalina.sh stop
或者
/usr/local/apache-tomcat-7.0.28/bin/shutdown.sh
2012-07-01
mysql-5.5.14.tar.gz
1、先安装cmake
#tar zxf cmake-2.8.5.tar.gz
#cd cmake-2.8.5
#./bootstrap
#make
#make install
2、编译安装mysql-5.5.14
useradd mysql
tar zxf mysql-5.5.14.tar.g
cd mysql-5.5.14
CFLAGS="-O3" CXX=gcc
CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti"
cmake . -LH|more //CMake下查看MySQL的编译配置
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DEXTRA_CHARSETS=all
make
make install
chown -R mysql:mysql /usr/local/mysql
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql/
./scripts/mysql_install_db --user=mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
/usr/local/mysql/bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.14-log Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.01 sec
2012-05-13
cmake-2.8.5.tar.gz
1.安装cmake
1)下载cmake
#wget http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz
2)解压cmake
#tar -zvxf cmake-2.8.3.tar.gz
3)配置编译
#cd cmake-2.8.3
#yum -y install gcc
#yum -y install gcc-c++
#./configure
#make
#make install
2012-05-13
mysql-5.1.58.tar.gz
2. 安装方法
1) 解压软件包
tar xvf mysql-5.1.58.tar.gz
2) 配置mysql用户
useradd –d /home/mysql mysql
编辑mysql用户的.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/sbin
export PATH
export PS1="[\u@\h \w ]\$"
3) 配置,编译,编译安装
./configure --prefix=/home/mysql/ \
--with-unix-socket-path=/home/mysql/mysql.sock \
--with-big-tables \
--with-charset=utf8 \
--with-collation=utf8_general_ci \
--with-extra-charsets=gbk,gb2312,utf8 \
--with-client-ldflags=-all-static \
--with-client-ldflags=-all-static \
--with-plugins=partition,innobase,myisammrg \
--with-pthread \
--with-readline \
--without-debug \
--without-isam \
--enable-local-infile \
--enable-thread-safe-client
make
make install
2012-05-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人