用户管理
https://blog.csdn.net/inte_sleeper/article/details/6570030
通过PUTTY或者GIT BASH连接之后
passwd
修改管理员密码
sudo yum update sudo yum upgrade
注意:
软连接不要用相对路径 不然会报错
Too many levels of symbolic links
yum命令详解
https://www.cnblogs.com/chuncn/archive/2010/10/17/1853915.html
安装mysql
https://www.jianshu.com/p/7cccdaa2d177
https://www.cnblogs.com/lzhdonald/p/12511998.html
https://www.jianshu.com/p/0d253b5cb593
修改mysql密码
https://blog.51cto.com/zhangxinqi/2177264
然后安装python3
https://www.linuxidc.com/Linux/2018-07/153286.htm
pip3安装django等依赖
安装和配置虚拟环境
https://www.cnblogs.com/technologylife/p/6635631.html
生成requirements.txt
pip freeze > requirements.txt
pip install -r requirements.txt
安装nginx
https://www.centos.bz/2018/01/centos-7%EF%BC%8C%E4%BD%BF%E7%94%A8yum%E5%AE%89%E8%A3%85nginx/
https://www.cnblogs.com/zhanghaoyong/p/7737536.html
把nginx添加为服务
https://www.cnblogs.com/piscesLoveCc/p/5867900.html
配置redis
https://www.cnblogs.com/renzhicai/p/7773080.html
从gcc4.8 升级到gcc5+
https://www.cnblogs.com/ToBeExpert/p/10297697.html
还要安装flex
https://github.com/westes/flex/releases
升级Glibc
https://blog.csdn.net/EI__Nino/article/details/100094484
安装opencv遇到问题
https://blog.csdn.net/roxxo/article/details/87166706
配置mongoDB
https://www.jianshu.com/p/ccdd3e884b86
开机启动
修改 /etc/rc.d/rc.local文件
在里面加上要运行的代码
最后以exit 0 结尾
#!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot. sh /root/start.sh & exit 0
配置定时任务 crond
http://blogjava.net/freeman1984/archive/2010/09/23/332715.html
wget: unable to resolve host address解决方法
vim /etc/resolv.conf nameserver 8.8.8.8 #google域名服务器 nameserver 8.8.4.4 #google域名服务器