In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
A system environment building and deployment is an exercise is a rare learning opportunity, very happy, first share out, please the majority of blog friends a lot of advice! After reading this post, friends, don't forget to comment. I would like to thank you here.
MySQL part
The specific installation steps are as follows:
Mkdir-p/data/mysql
Mkdir-p/data/mysqldata
Mysqlbase=/data/mysql
Mysqldata=/data/mysqldata
Yum-ygroupinstall "Development Tools"
Yum-ygroupinstall "Development Libraries"
Yum-y installntp vim-enhanced gcc gcc-c++ flex bison autoconf automake bzip2-develncurses-devel zlib-devel libjpeg-devel libpng-devel libtiff-develfreetype-devel libXpm-devel gettext-devel pam-devel libtool libtool-ltdl openssl openssl-devel fontconfig-devellibxml2-devel curl-devel libiculibicu-devel libmcrypt libmcrypt-devel libmhash libmhash-devel
Tar zxvfcmake-2.8.8.tar.gz-C / tmp
Tar zxvfmysql-5.5.32.tar.gz-C / tmp
Useradd mysql-s/sbin/nologin
# install cmake
Cd/tmp/cmake-2.8.8
. / configure&& make & & make install
# install mysql3306
Cd/tmp/mysql-5.5.32
Cmake-DCMAKE_INSTALL_PREFIX=$mysqlbase-DMYSQL_DATADIR=$mysqldata-DMYSQL_UNIX_ADDR=/tmp/mysql.sock-DDEFAULT_CHARSET=utf8-DDEFAULT_COLLATION=utf8_general_ci-DWITH_READLINE=1-DWITH_SSL=system-DWITH_EMBEDDED_SERVER=1-DENABLED_LOCAL_INFILE=1-DWITH_MYISAM_STORAGE_ENGINE=1-DWITH_INNOBASE_STORAGE_ENGINE=1-DMYSQL_USER=mysql-DWITH_DEBUG=0
Make & & make install
Chown-Rmysql.mysql $mysqlbase
Chown-Rmysql.mysql $mysqldata
Sh. / scripts/mysql_install_db.sh--user=mysql-basedir=$mysqlbase-datadir=$mysqldata
# config mysql
Yes | cp/data/mysql/support-files/my-innodb-heavy-4G.cnf / etc/my.cnf
Yes | cp/data/mysql/support-files/mysql.server / etc/init.d/mysql
Chmod u+x/etc/init.d/mysql
# service mysql
Chkconfig-addmysql
Chkconfig--level 35 mysql on
# / etc/init.d/mysql restart
Weblogic part
The specific installation steps are as follows:
Source / etc/profile
Groupadd bea
Mkdir / data
Useradd-d / data/weblogic-g bea weblogic
Echo'wlsfolk percent percent'| passwd-- stdin weblogic
JAVA_HOME=/data/weblogic/jdk1.6.0_25
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
PATH=$JAVA_HOME/bin:$PATH
Export JAVA_HOME CLASSPATH PATH
Switch to WebLogic user
Source / etc/profile
Wget ftp://IP address / weblogic/wls1035_generic.jar&& wget ftp://IP address / weblogic/jdk-6u25-linux-x64.bin
Chown-R weblogic:bea wls1035_generic.jar jdk-6u25-linux-x64.bin
Chmod uplix / data/weblogic/jdk-6u25-linux-x64.bin
/ data/weblogic/jdk-6u25-linux-x64.bin
Export.utf-8
Wget ftp://IP address / weblogic/silent.xml
Switch to the root user and do the following
Vim/etc/profile adds the following four lines at the end
JAVA_HOME=/data/weblogic/jdk1.6.0_25
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
PATH=$JAVA_HOME/bin:$PATH
ExportJAVA_HOME CLASSPATH PATH
Then switch to the weblogic user and do the following
Source / etc/profile
Java-Xmx1024m-D64-jar. / wls1035_generic.jar-mode=silent-silent_xml=./silent.xml
/ data/weblogic/wlserver/wlserver_10.3/common/bin/wlst.sh
Then enter:
ReadTemplate ('/ data/weblogic/wlserver/wlserver_10.3/common/templates/domains/wls.jar')
Cd ('Server/AdminServer')
Set ('ListenAddress','')
Set ('ListenPort',7001)
Cd ('/')
Cd ('Security/base_domain/User/weblogic')
Cmo.setPassword ('wlskeeper percent%')
SetOption ('OverwriteDomain','true')
WriteDomain ('/ data/weblogic/wlserver/user_projects/domains/base_domain')
When wls:/offline/base_domain/Security/base_domain/User/weblogic > appears after a while, type: exit () and press Enter.
Then edit the setDomainEnv.sh:
Vim / data/weblogic/wlserver/user_projects/domains/base_domain/bin/setDomainEnv.sh
Line 452 is modified to read:
JAVA_OPTIONS= "${JAVA_OPTIONS}-Djava.security.egd=file:/dev/zero"
JAVA_VM= "- d64-server ${JAVA_DEBUG} ${JAVA_PROFILE}"
Edit startWebLogic.sh:
Vim / data/weblogic/wlserver/user_projects/domains/base_domain/bin/startWebLogic.sh
Insert at line 172:
# ARGS MODIFY
MEM_ARGS= "- Xms4096M-Xmx4096M-Xmn2048M-Xss256k-XX:PermSize=256m-XX:MaxPermSize=512m-XX:SurvivorRatio=6"
# MEM_ARGS= "- Xms4096M-Xmx4096M-Xmn2048M-Xss128k-XX:PermSize=256m-XX:MaxPermSize=512m-XX:SurvivorRatio=6"
Switch to the root user and do the following:
Vim/etc/hosts
Add the local IP and hostname (corresponding) to / etc/hosts
Next, switch to the weblogic user and execute the following command:
Cd / data/weblogic/wlserver/user_projects/domains/base_domain/bin/
Nohup bash startWebLogic.sh &
MongoDB part
The specific installation steps are as follows:
Wget-nc-P / tmp http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.8.tgz
Tar zxvf / tmp/mongodb-linux-x86_64-2.0.8.tgz-C / tmp
Sudo mv / tmp/mongodb-linux-x86_64-2.0.8 / usr/local/mongodb-2.0.8
Sudo mkdir-p / etc/xhsso-mongodb-2.0.8-conf
Sudo mkdir-p / data/xhsso-mongodb/logs
Start mongodb under / usr/local/mongodb-2.0.8/bin
. / mongod-- dbpath / data/db/-- smallfiles &
Check that MongoDB is installed successfully:
# netstat-lanp | grep "27017"
Redis part
The specific installation steps are as follows:
Yum install-y autoconfautomake binutils bison flex gcc gcc-c++ gettext libtool make patch
Yum groupinstall "Development Tools"
Yum groupinstall "Development Libraries"
Mkdir-p / data/redis/data
# install redis
Tar zxvf redis-2.6.10.tar.gz-C/usr/local/src
Cd / usr/local/src/redis-2.6.10
Make
# configredis
Sed-I "s/daemonize no/daemonizeyes/g" / usr/local/src/redis-2.6.10/redis.conf
Sed-I "s/dir. / / dir\ / data\ / redis\ / data/g" / usr/local/src/redis-2.6.10/redis.conf
# serviceredis
Yes | cp/usr/local/src/redis-2.6.10/src/redis-server / usr/bin
Redis-server/usr/local/src/redis-2.6.10/redis.conf
Memcached part
The specific installation steps are as follows:
Tar zxvf libevent-2.0.21-stable.tar.gz-C / tmp
Tar zxvfmemcached-1.4.15.tar.gz-C / tmp
# install libevent
Cd/tmp/libevent-2.0.21-stable
. / configure--prefix=/usr/local/libevent
Make&& make install
# install memcached
Cd/tmp/memcached-1.4.15
. / configure--prefix=/usr/local/memcached-1.4.15-- with-libevent=/usr/local/libevent
Make&& make install
# start memcached
/ usr/local/memcached-1.4.15/bin/memcached-d-u root-p 11212-m 500-n 48-f 1.25-c10240-t 4-R 20-C-P / tmp/memcached.pid
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.