服务器安装配置

服务端安装流程

 

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

 

posted @ 2017-02-17 00:47  一个橙子~  阅读(261)  评论(0编辑  收藏  举报