zoukankan      html  css  js  c++  java
  • 服务器安装配置

    服务端安装流程

    open ~/.bash_profile

    vim ~/.bash_profile      i  插入修改  :wq 保存退出

    1.安装eclipse。安装jdk

    2.maven 配置

    export MAVEN_HOME=/Users/wangchengcheng/Downloads/UtilitySoftWare/Work/ServerTools/apache-maven-3.3.3

    export PATH=$PATH:$MAVEN_HOME/bin

    3.配置好环境变量后输入命令以使bash_profile生效

     $ source ~/.bash_profile

    4.引擎jar包

    进入 服务器项目路径 gong-game/lib 下

    mvn install:install-file -DgroupId=com.hadoit.game.common -DartifactId=game-common-lang -Dversion=1.1.6 -Dpackaging=jar -Dfile=game-common-lang-1.1.6.jar 

    mvn install:install-file -DgroupId=com.hadoit.game.engine -DartifactId=game-engine-core -Dversion=2.2.25 -Dpackaging=jar -Dfile=game-engine-core-2.2.25.jar

    mvn install:install-file -DgroupId=com.hadoit.game.common -DartifactId=game-common-framework -Dversion=1.1.16 -Dpackaging=jar -Dfile=game-common-framework-1.1.16.jar

    5.安装homebrew

    https://brew.sh

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    brew install mysql

    出现问题

    Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    解决办法

    Try to run in command line mysql.server start

    $ mysql.server start

    通过数据库管理工具添加数据库账号

       用户名 dev 密码 dev

       用户名 dev host  127.0.0.1 密码 dev

       用户名 dev host  localhost 密码 dev

    Redis

    brew install redis

    redis-server /usr/local/etc/redis.conf

    设置密码

    /usr/local/bin/redis-cli 

    127.0.0.1:6379>  CONFIG SET requirepass "dev"

    OK

    127.0.0.1:6379> AUTH dev

    OK

    6.安装jetty

    http://marketplace.eclipse.org/content/run-jetty-run  直接拖到eclipse

  • 相关阅读:
    GeoHash核心原理解析
    线程安全与可重入函数
    malloc和free的实现
    数字金字塔最大路径和——递归
    TCP连接建立与断开
    Gray Code
    C压缩字符串中的空格
    C++链接与装载
    epoll测试实例
    C++之手写strlen函数
  • 原文地址:https://www.cnblogs.com/cci8go/p/6408128.html
Copyright © 2011-2022 走看看