Tips-windows10下virtual box 安装64位ubuntu
win10 home操作系统下在virtual box(版本6.1)中安装64位ubuntu(版本18)。
可能需要配置的地方:
1. BIOS中是否开始virtualization。
2.关闭hyper-v服务(这个我没测试,但是网上说不能开启)
3. 关闭内核隔离,重启电脑。重启完最好检查一下是否关闭,我第一次操作的问题没关闭,头秃了很久。
参考:
https://shiyousan.com/post/636245851547291596
https://www.zhihu.com/question/38841757
镜像网站:
https://developer.aliyun.com/mirror/
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
另,
- 安装增强功能时,报错不能mount,然后找了很多解决办法:
sudo apt-get install --reinstall linux-image-$(uname -r)
参考:https://askubuntu.com/questions/596998/unable-to-install-guest-additions-unknown-filesystem-type-iso9660
可能我的和弹出cdrom的情况不一样。鼓捣半天也没能实现剪切板的双向和共享文件的修改也会报错呢。有空再说。
VBoxManage和ssh的使用,可以不用打开virtualbox软件界面而操作虚拟机
从win10 ssh连接ubuntu,报错access denied,解决:文件
/etc/ssh/sshd_config
中#PasswordAuthentication yes
这句将#去掉
参考:https://superuser.com/questions/543626/ssh-permission-denied-on-correct-password-authentication
安装docker参考:https://zhuanlan.zhihu.com/p/59049433
安装redis参考:https://www.jianshu.com/p/77ced41dbc47 和 https://blog.csdn.net/u010644448/article/details/69396299
远程访问redis配置(1. redis.conf中bind ip和requirepass,2.防火墙开放6379端口)参考:https://wangxin1248.github.io/linux/2018/07/ubuntu18.04-install-redis.html, https://www.cnblogs.com/PatrickLiu/p/8360057.html
docker安装mysql5.7,参考:https://my.oschina.net/u/3375733/blog/1801482
装完在客户端执行mysql文件的时候显示mysql [ERR] 2006 - MySQL server has gone away,因为'max_allowed_packet'的值太小,连接被中断。但不想在docker中改mysql的配置文件,所以运行mysql语句修改:
show GLOBAL VARIABLES LIKE 'max_allowed_packet';
set global max_allowed_packet=368435456;
参考:https://blog.csdn.net/lb_383691051/article/details/78755655
为啥不装mysql8(latest),因为连续解决jdbc连接还有ssl的问题之后,还有问题,我就放弃了。