`
陌上凌薇
  • 浏览: 9862 次
  • 性别: Icon_minigender_2
  • 来自: 天津
最近访客 更多访客>>
社区版块
存档分类
最新评论

server all-install

 
阅读更多
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;
分享到:
评论

相关推荐

    mycat2 install-template(mycat2-install-template-1.21.zip)

    【标题】"mycat2 install-template(mycat2-install-template-1.21.zip)" 指的是MyCat 2的一个安装模板文件,版本为1.21,通常包含了安装MyCat 2所需的所有配置文件和脚本,用于简化部署过程。 【描述】虽然描述...

    SU-FTP-Server-Windows-v15.1.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...

    phpMyAdmin-3.3.7-rel-all-languages.tar.gz

    在Redhat9中,可以使用`yum install mysql-server`来安装MySQL服务器及其管理工具。 4. 安装PHP:PHP是一种广泛使用的服务器端脚本语言,用于动态网页开发。在Redhat9中,通过`yum install php`命令可以安装PHP及其...

    How-to-install-mysql-on-ubuntu.rar_Ubuntu!

    sudo apt install mysql-server ``` 安装过程中,系统会提示设置MySQL的root用户的密码。请确保选择一个安全且易于记忆的密码。 安装完成后,你需要启动MySQL服务并检查其状态: ```shell sudo systemctl start ...

    rabbitmq-server-windows-3.6.12.zip

    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 ...

    Ubuntu下openssh-server手工安装 手把手教你安装

    例如,对于`openssh-server_版本号_all.deb`,运行`sudo dpkg -i openssh-server_版本号_all.deb`。如果遇到依赖问题,可以先安装`openssl`,然后再安装`openssh-server`。 4. **解决依赖关系**:如果在安装过程中...

    mysql install

    ./configure --prefix=/usr/local/mysql --with-plugins=all ``` 这将使MySQL安装在`/usr/local/mysql`目录下,并开启所有插件支持,包括InnoDB。如果你的系统中没有此路径,你需要先创建它,并赋予`mysql`用户相应...

    OpenCms-install.rar_opencms

    GRANT ALL PRIVILEGES ON opencms_db.* TO 'opencms_user'@'localhost' IDENTIFIED BY 'your_password'; FLUSH PRIVILEGES; ``` 4. 配置MySQL连接:在Tomcat的`conf/server.xml`文件中,修改或添加数据源配置,如...

    web-server-install-ubuntu-12.04:在Ubuntu 12.04 LTS下启用Nginx,PHP和MySQL的Web服务器的分步安装指南

    sudo apt-get install mysql-server ``` 在安装过程中,系统会提示你设置MySQL的root用户的密码。安装完成后,可以使用`sudo mysql_secure_installation`来增强MySQL的安全性。 **创建数据库和用户** 登录到MySQL...

    VisualSVN Server 3.5.4 破解补丁

    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-...

    全网第一家 vSphere 6.7 u3 & u2 | vCSA 6.7 u3 & u2 | Esxi 6.7 u3 & u2 下载

    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 ...

    win10-wnmp开发环境

    phpMyAdmin-5.2.1-all-languages.zip 安装 解压后server跟www目录放E盘,其他盘自行修改init内启动脚本 mysql初始化 cmd管理员身份进入server\mysql\bin mysqld --install mysql mysql root密码:OkPlus123456 启动 ...

    VMware vSphere 7 Update 3.rar

    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。下面是 JasperReport Server 安装手册的主要知识点: 一、准备材料 ...

    Recover4all Professional

    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...

    ubuntu下安装nagios指南

    GRANT ALL PRIVILEGES ON nagios.* TO 'nagiosuser'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; EXIT; ``` 安装Nagios核心及插件: ```bash # 下载Nagios源码并编译安装 # 安装NRPE、SNMP、...

    guac-install:在Ubuntu上安装Guacamole的脚本

    GRANT ALL PRIVILEGES ON guacamole.* TO 'guacamole'@'localhost' IDENTIFIED BY 'your_password'; ``` 然后,需要下载和安装Guacamole客户端。这通常包括将Guacamole的WAR文件部署到Tomcat的webapps目录下,并...

    matlab2018代码界面-ubuntu-server-configuration:ubuntu服务器配置

    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 ...

Global site tag (gtag.js) - Google Analytics