iPhone X可以说是自iPhone 6以来改变最大的一次,全面屏,取消Home键,用Face ID代替Touch ID、调整交互,这么多的改变全部集成在iPhone X里,让很多人都暂时无法适应,但是,根据库克的最新消息,iPhone X的销量又非常的不错,人们似乎也还是非常的认可这次的改变。
Archive | Draft
在Debain9上安装Docker-CE
安装依赖
1 |
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common |
安装Key
1 |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - |
添加源
1 |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" |
安装docker-ce
1 2 |
apt-get update apt-get install docker-ce |
测试
1 |
docker run hello-world |
输出
1 2 |
Hello from Docker! This message shows that your installation appears to be working correctly. |
Debian9安装Redis-Server
安装redis-server
1 |
apt install redis-server |
output
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: redis-tools Suggested packages: ruby-redis The following NEW packages will be installed: redis-server redis-tools 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 875 kB of archives. After this operation, 2,380 kB of additional disk space will be used. Do you want to continue? [Y/n] |
安装php-redis
1 |
apt install php7.0-redis |
output
1 2 3 4 5 6 7 8 9 10 11 12 |
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php-redis' instead of 'php7.0-redis' The following additional packages will be installed: php-igbinary The following NEW packages will be installed: php-igbinary php-redis 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 137 kB of archives. After this operation, 584 kB of additional disk space will be used. Do you want to continue? [Y/n] |
PHP7安装APCu
安装APCu
1 2 3 |
apt-get update apt-get install php-apcu service apache2 reload |
由于APCu相比其他memecache方案兼容性要差,所以首推其他方案,如更加先进的Redis
导入本地sql文件至MariaDB
1.登陆
1 |
mysql -u root -p |
输入密码