准备环境

系统:CentOS 6.9 64位 (可以用虚拟机安装)

数据库系统:mysql

Window: Navicat


  • 建立数据库:

create database mmall default character set utf8 collate utf8_general_ci;  

通过

select * from mysql.user G;

查看数据库权限,因为可能需要用navicat在虚拟机外访问,所以,更改权限如下:

grant all privileges on mmall.* to mmall@'%' identified by 'mmall' with grant option;

(新建一个 % 用户,赋予mmall的访问权限,以mmall为访问密码)



  • Git安装(linux)
安装依赖:
sudo yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel curl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker;
是否使用sudo  看具体情况!y的意思是自动确认为'y'
yum install git (默认低版本1.7)
或者这样:
进入https://github.com/git/git/releases/tag/v2.15.0
右键复制tar.gz文件到linux终端
wget https://github.com/git/git/archive/v2.15.0.tar.gz
然后解压 tar -zxvf v2.15.0.tar.gz
cd 进入目录
编译:sudo make prefix=/usr/local all      #不带前缀默认在usr/bin 下
安装:sudo make prefix=/usr/local install

git config --global user.name "root"

git config --global user.email "xx @qq.com" 

git config --global merge.tool "kdiff3"

git config --global core.autocrlf false;

git config --global gui.encoding utf-8

git config --global core.quotepath off

ssh-keygen -t rsa -C "xx@qq.com"   #记住不要输入任何内容或密码 一直确认就可以了

ssh-add ~/.ssh/id_rsa 

 cat ~/.ssh/id_rsa.pub #复制内容

在github网站添加公钥即可.


原文地址:https://www.cnblogs.com/loveBolin/p/9614279.html