yum install gcc
yum install gcc-c++
yum install make
***********all pc need install*************
1) mongodb:
1 install boost/scons/uuid
yum install boost-devel
yum install scons
2 install mongodb
scons --prefix=/opt/mongodb --full install
cp -r ./sbin /opt/mongodb/
mkdir /app/mongodb
vi /etc/rc.local add line /opt/mongodb/sbin/shardserver start
2) jdk
1 ./jdk-6u32-linux-x64.bin
2 cp -r jdk1.6.0_32/ /opt/jdk1.6
3 vi /etc/profile
export JAVA_HOME=/opt/jdk1.6
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
4 source /etc/profile
set
5 for test
echo $JAVA_HOME
java -version
***************game server need install *********************
1) uuid
yum install libuuid-devel
2) jsoncpp
scons platform=linux-gcc
cd libs/linux-gcc-4.4.4/
cp * /usr/lib64/
ln -s /usr/lib64/libjson_linux-gcc-4.4.4_libmt.so /usr/lib64/libjsoncpp.so
cd ../../include
cp -r json /usr/include/
**************gateway server need install ************************
1) nginx
1 ********install from source
libtool
zlib
pcre
2 yum install openssl-devel
3 进入nginx安装目录
./configure --prefix=/opt/nginx --with-http_ssl_module
make
make install
4 把这里的nginx.conf拷到相应的位置(注意修改中文部分的配置)
cp /path/to/nginx.conf /opt/nginx/conf/nginx.conf
vi /etc/rc.local
/opt/nginx/sbin/nginx
2) php
1 ********** install form source*****************
zlib(zlib will install when install the nginx)
libxml(yum install libxml2-devel)
libtool(libtool will install when install the nginx)
libjpeg
libpng
libmcrypt
libcurl(yum install libcurl-devel)
openssl(openssl will install when install the nginx)
2 groupadd webuser
useradd -g webuser webuser
3 ./configure --prefix=/opt/php --enable-fpm --with-fpm-user=webuser --with-fpm-group=webuser --with-curl --with-mcrypt --enable-mbstring --enable-pdo --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-openssl --with-gd --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ --enable-exif --enable-zip
make
make install
4 cp php-fpm.conf /opt/php/etc/php-fpm.conf
cp php.ini /opt/php/lib/php.ini
cp ./sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod 755 /etc/init.d/php-fpm
chkconfig php-fpm on
3) mongodb php driver
#install mongodb php driver
cd mongodb-mongodb-php-driver-<commit_id>
/opt/php/bin/phpize
./configure --with-php-config=/opt/php/bin/php-config
make && make install
vi /opt/php/lib/php.ini
extension=mongo.so
安装mysql
groupadd mysql
useradd -g mysql mysql
mkdir -p /app/mysql/mysqld_log/innodb
chown mysql:mysql /app/mysql/mysqld_log -R
cd /opt/mysql
#cp /path/to/my.cnf my.cnf
./scripts/mysql_install_db --defaults-file=./my.cnf
#cp /path/to/mysqld /opt/mysql/sbin/mysqld
/opt/mysql/sbin/mysqld start
/opt/mysql/bin/mysqladmin --socket=/tmp/mysql.sock -u root password xxx
/opt/mysql/bin/mysql -uroot --password='xxx' --socket=/tmp/mysql.sock
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'xxx' WITH GRANT OPTION;
flush privileges;
yum install gcc-c++
yum install make
***********all pc need install*************
1) mongodb:
1 install boost/scons/uuid
yum install boost-devel
yum install scons
2 install mongodb
scons --prefix=/opt/mongodb --full install
cp -r ./sbin /opt/mongodb/
mkdir /app/mongodb
vi /etc/rc.local add line /opt/mongodb/sbin/shardserver start
2) jdk
1 ./jdk-6u32-linux-x64.bin
2 cp -r jdk1.6.0_32/ /opt/jdk1.6
3 vi /etc/profile
export JAVA_HOME=/opt/jdk1.6
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
4 source /etc/profile
set
5 for test
echo $JAVA_HOME
java -version
***************game server need install *********************
1) uuid
yum install libuuid-devel
2) jsoncpp
scons platform=linux-gcc
cd libs/linux-gcc-4.4.4/
cp * /usr/lib64/
ln -s /usr/lib64/libjson_linux-gcc-4.4.4_libmt.so /usr/lib64/libjsoncpp.so
cd ../../include
cp -r json /usr/include/
**************gateway server need install ************************
1) nginx
1 ********install from source
libtool
zlib
pcre
2 yum install openssl-devel
3 进入nginx安装目录
./configure --prefix=/opt/nginx --with-http_ssl_module
make
make install
4 把这里的nginx.conf拷到相应的位置(注意修改中文部分的配置)
cp /path/to/nginx.conf /opt/nginx/conf/nginx.conf
vi /etc/rc.local
/opt/nginx/sbin/nginx
2) php
1 ********** install form source*****************
zlib(zlib will install when install the nginx)
libxml(yum install libxml2-devel)
libtool(libtool will install when install the nginx)
libjpeg
libpng
libmcrypt
libcurl(yum install libcurl-devel)
openssl(openssl will install when install the nginx)
2 groupadd webuser
useradd -g webuser webuser
3 ./configure --prefix=/opt/php --enable-fpm --with-fpm-user=webuser --with-fpm-group=webuser --with-curl --with-mcrypt --enable-mbstring --enable-pdo --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-openssl --with-gd --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ --enable-exif --enable-zip
make
make install
4 cp php-fpm.conf /opt/php/etc/php-fpm.conf
cp php.ini /opt/php/lib/php.ini
cp ./sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod 755 /etc/init.d/php-fpm
chkconfig php-fpm on
3) mongodb php driver
#install mongodb php driver
cd mongodb-mongodb-php-driver-<commit_id>
/opt/php/bin/phpize
./configure --with-php-config=/opt/php/bin/php-config
make && make install
vi /opt/php/lib/php.ini
extension=mongo.so
安装mysql
groupadd mysql
useradd -g mysql mysql
mkdir -p /app/mysql/mysqld_log/innodb
chown mysql:mysql /app/mysql/mysqld_log -R
cd /opt/mysql
#cp /path/to/my.cnf my.cnf
./scripts/mysql_install_db --defaults-file=./my.cnf
#cp /path/to/mysqld /opt/mysql/sbin/mysqld
/opt/mysql/sbin/mysqld start
/opt/mysql/bin/mysqladmin --socket=/tmp/mysql.sock -u root password xxx
/opt/mysql/bin/mysql -uroot --password='xxx' --socket=/tmp/mysql.sock
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'xxx' WITH GRANT OPTION;
flush privileges;
发表评论
-
Linux学习札记
2013-03-14 10:11 0CentOS 1.公司安排我们要转行要做android,所以需 ... -
Shell脚本学习札记
2013-03-13 14:52 01.top awk uptime命令(待详细学习) 2.she ... -
Linux操作系统下VI编辑器常用命令介绍[转]
2013-03-08 10:30 561一.简介 vi是unix世界中最通用的全屏编辑器,Lin ... -
Linux常用命令学习(更新中)
2013-03-08 10:29 4641.man 说明 :查阅命令帮助 格式:man 命 ... -
memcache安装---CentOS
2013-03-07 09:24 9931.综合参考以下博客将libevent memcached m ... -
Ubuntu B2G环境配置
2013-03-07 09:15 1237可以参考这个: http://wikiserver.sprea ... -
linux的九个Shell技巧[转]
2013-03-06 19:48 576linux的九个Shell技巧 一 ... -
CentOS故障分析
2013-03-06 19:44 488 Centos镜像下载 http://mirrors.16 ... -
Server工具
2013-03-06 19:43 680服务器数据备份 方式:完全备份、增量备份、差异备份 [综合使 ...
相关推荐
【标题】"mycat2 install-template(mycat2-install-template-1.21.zip)" 指的是MyCat 2的一个安装模板文件,版本为1.21,通常包含了安装MyCat 2所需的所有配置文件和脚本,用于简化部署过程。 【描述】虽然描述...
TO INSTALL: 1) Shut down all running Serv-U processes. i) Right-click the tray icon, and then select "Stop Serv-U". ii) Right-click the tray icon, and then select "Exit Tray". 2) Make a backup copy...
在Redhat9中,可以使用`yum install mysql-server`来安装MySQL服务器及其管理工具。 4. 安装PHP:PHP是一种广泛使用的服务器端脚本语言,用于动态网页开发。在Redhat9中,通过`yum install php`命令可以安装PHP及其...
sudo apt install mysql-server ``` 安装过程中,系统会提示设置MySQL的root用户的密码。请确保选择一个安全且易于记忆的密码。 安装完成后,你需要启动MySQL服务并检查其状态: ```shell sudo systemctl start ...
To upgrade a non-clustered RabbitMQ simply install the new version. All configuration and persistent message data are retained. When upgrading using definitions export/import from versions earlier ...
例如,对于`openssh-server_版本号_all.deb`,运行`sudo dpkg -i openssh-server_版本号_all.deb`。如果遇到依赖问题,可以先安装`openssl`,然后再安装`openssh-server`。 4. **解决依赖关系**:如果在安装过程中...
./configure --prefix=/usr/local/mysql --with-plugins=all ``` 这将使MySQL安装在`/usr/local/mysql`目录下,并开启所有插件支持,包括InnoDB。如果你的系统中没有此路径,你需要先创建它,并赋予`mysql`用户相应...
GRANT ALL PRIVILEGES ON opencms_db.* TO 'opencms_user'@'localhost' IDENTIFIED BY 'your_password'; FLUSH PRIVILEGES; ``` 4. 配置MySQL连接:在Tomcat的`conf/server.xml`文件中,修改或添加数据源配置,如...
sudo apt-get install mysql-server ``` 在安装过程中,系统会提示你设置MySQL的root用户的密码。安装完成后,可以使用`sudo mysql_secure_installation`来增强MySQL的安全性。 **创建数据库和用户** 登录到MySQL...
VisualSVN Server is distributed as a single installation package with the latest versions of all the required components. The installation process is extremely simple and allows you to setup a full-...
It includes the UI and CLI installer for install/upgrade/migration for VMware vCenter Server Appliance, VMware Platform Services Controller, VMware vSphere Update Manager and Update Manager Download ...
phpMyAdmin-5.2.1-all-languages.zip 安装 解压后server跟www目录放E盘,其他盘自行修改init内启动脚本 mysql初始化 cmd管理员身份进入server\mysql\bin mysqld --install mysql mysql root密码:OkPlus123456 启动 ...
Name: VMware-VCSA-all-7.0.3-18700403.iso SHA256SUM: d1478ee9dd40bbb4445bd15ce221aea7c7f352eaf2d2f24b4c893aeceeec24b5 VMware vCenter Server Appliance Update Bundle File size: 6.84 GB File type: ...
JasperReport Server 安装手册 JasperReport Server 安装手册是一份详细的安装指南,旨在帮助用户正确地安装和配置 JasperReport Server。下面是 JasperReport Server 安装手册的主要知识点: 一、准备材料 ...
1.2 "Registered Software" means Licensor's proprietary software entitled Recover4all(tm) Professional, including, but not limited to, any images, photographs, animations and documentation incorporated...
GRANT ALL PRIVILEGES ON nagios.* TO 'nagiosuser'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; EXIT; ``` 安装Nagios核心及插件: ```bash # 下载Nagios源码并编译安装 # 安装NRPE、SNMP、...
GRANT ALL PRIVILEGES ON guacamole.* TO 'guacamole'@'localhost' IDENTIFIED BY 'your_password'; ``` 然后,需要下载和安装Guacamole客户端。这通常包括将Guacamole的WAR文件部署到Tomcat的webapps目录下,并...
ubuntu-server-configuration common software setup and remote control software configuration common software setup Install ubuntu 16.04 LTS. username:robot password:保密 change su passwd:new passwd is ...