本文已参与「新人创作礼」活动,一起开启掘金创作之路。
1.安装redis
wget http://download.redis.io/releases/redis-5.0.4.tar.gz
2.gunzip redis-5.0.4.tar.gz
3.tar -xvf redis-5.0.4.tar
4.make && make install
5.redis-server
6.redis-server &(放后台运行) 放到前台(CTRL + Z)
redis -cli shutdown nosave
redis-server --requirepass 1assss(密码)
二.安装git
wget mirrors.edge.kernel.org/pub/softwar…
xz -d git-2.21.0.tar.xz
tar -xvf git-2.21.0.tar
yum -y install libcurl-devel
./configure --prefix=/usr/local/
make & make install
git --version
[root@localhost code]# cd code
[root@localhost code]# git init
[root@localhost code]# git add example01.py
[root@localhost code]# git add .(添加所有文件)
[root@localhost code]# git status
[root@localhost code]# git commit -m '完成用户评论功能'
[root@localhost code]# git checkout -- .(恢复删除的文件)
[root@localhost code]# git log(历史提交记录)
[root@localhost code]# git reset --hard ..........(回到历史版本)
[root@localhost code]# git reflog(恢复日志)
[root@localhost code]# git status
国内代码托管平台:码云gitee / coding
git clone gitee.com/meiyanxingh…
git push
git pull