始于此, 终于斯
文章31
标签0
分类13

宝塔切换系统PHP版本

http://anony-dino.top/usr/uploads/2020/03/492000180.png

sudo ln -sf /www/server/php/73/bin/php /usr/bin/php

树莓派安装centOS

选择centOS版本

http://isoredirect.centos.org/altarch/7/isos/armhfp/
mini版的需要自己打驱动, 有点麻烦, 直接上了完整版, 接上键鼠在桌面环境直接连上WiFi后, 往后启动只需要ssh连接就行了.

烧制系统

使用 Win32DiskImager 将下载的镜像烧制到SD卡


Git

生成系统公钥

ssh-keygen -t rsa -C "xxxxx@xxxxx.com"  

# Generating public/private rsa key pair...
# 三次回车即可生成 ssh key
cat ~/.ssh/id_rsa.pub

https://github.com/settings/keys 添加SSH Keys

检测是否设置成功

ssh -T git@github.com

git init
git add .
git commit -m 'react-thunk'
git remote add origin git@github.com:Anony-Dino/react.git
git push -u origin master [-f]

git checkout -b origin/react-redux
git pull origin/react-redux
git branch -r // 查看分支列表
git reset --hard origin/react-redux // 强行拉取分支覆盖本地
git pull

Mac Python 报SSL错误

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting selenium Could not fetch URL https://pypi.python.org/simple/selenium/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping Could not find a version that satisfies the requirement selenium (from versions: )

brew reinstall openssl

守夜人誓言

机器上线,我的守望从今而始,至死方休。
我将不娶妻、不睡觉、不生子。
我将不求升职,不争荣宠。
我将尽忠职守,生死于斯。
我是黑暗中的LED灯泡,机房里的守卫,守护公司网站的坚盾。
我将生命与荣耀献给服务器,今夜如此,夜夜皆然。