1234567891011121314151617181920[root@frps.cn ~]# yum install -y nfs-utils rpcbind[root@frps.cn ~]# systemctl start rpcbind[root@frps.cn ~]# systemctl enable rpcbind[root@frps.cn ~]# systemctl start nfs[root@frps.cn ~]# systemctl enable nfs#首先检查nfs挂载目录是否正常[root@nfs ~]# showmount -e localhostExport list for localhost:/volume1/nfs01 *#先在客户端创建数据目录(挂载点位置)[root@所有节点 ~]# mkdir -p /data1/k8s/[root@所有节点 ~]# mount -t nfs 10.4.82.118:/volume1/nfs01 /data1/k8s#现在进行挂载 分别是ip:nfs目录 节点存储目录挂在完成后我们使用df -h 就可以看到挂 ...
Archlinux 安装mysql;1234567891011121314151617181920212223242526Paceman -S mariadbsudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysqlTwo all-privilege accounts were created.One is root@localhost, it has no password, but you need tobe system 'root' user to connect. Use, for example, sudo mysqlThe second is mysql@localhost, it has no password either, butyou need to be the system 'mysql' user to connect.After connecting you can set the password, if you wou ...
SSH 命令端口转发(Port Forward)远程转发到本地端口 -L (端口转发)命令格式:
123ssh -N -f -L lhost:lport:rhost:rport ruser@rhost#
访问本地127.0.0.1:8443即可访问www.google.com:443
1ssh -N -f -L [lhost:]8443:www.google.com:443 root@1.1.1.1
本地转发到远程端口 -R (内网穿透)命令格式:
1ssh -N -f -R rhost:rport:lhost:lport ruser@rhost
访问1.1.1.1:443即可访问本地127.0.0.1:8443
1ssh -N -f -R [rhost:]443:localhost:8443 root@1.1.1.1
Socks 转发 -D命令格式:
1ssh -N -f -D lhost:lport ruser@rhost
通过ssh建立Socks通道,本地proxychains配置127.0.0.1:8080即可转发到1.1.1.1
1ssh -N -f -D [lhost:] ...
1.下载安装vscode巨硬爸爸开源的全平台IED工匠,本身只是一个简单的文本编辑查看代码的工具,由于众多开发者贡献的免费插件,已经成为一个很有影响力的一个IDE开发工具,墙裂建议你们试试使用vscode进行远程开发,比pycharm的远程开发好用10000000倍。https://code.visualstudio.com/
2.安装remote development插件
3.配置远程服务器4.添加服务器
5.连接输入密码
6.可选配置免密码登陆macos/linux 机器设置ssh keyssh-copy-id上传你的ssh public key到server免密设置成功
windows平台type %USERPROFILE%.ssh\id_rsa.pub | ssh username@server_ip -p port “cat >> .ssh/authorized_keys”
可以删除%USERPROFILE%如果你在windows的家目录下面输入密码就可以达到和linux的ssh-copy-id一样的功能
云端vscode云端vscode的概念就是在浏览器中有和本地一样体验的vscode环境。在以下这个网站中,官方已经有实现在浏览器中的实现。
installationhttps://github.com/coder/code-server/releases
1234## https://github.com/coder/code-server/releasescurl -fOL sudo dpkg -i code-server_4.3.0_amd64.debsudo systemctl enable --now code-server@root# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
12vim ~/.config/code-server/config.yaml
启动
12345678910111213# 类似jupyter notebookcode-server(base) [zengjunjie@gpu009 ~]$ (base) [zeng ...
123456(base) andrew@imac:~#jupyter notebook passwordEnter password: Verify password: [NotebookPasswordApp] Wrote hashed password to /Users/andrew/.jupyter/jupyter_notebook_config.json(base) andrew@imac:~#jupyter notebook --generate-config Writing default config to: /Users/andrew/.jupyter/jupyter_notebook_config.py
(一)使用1.终端输入:jupyter notebook –generate-config会生成一个配置文件,成功后会显示文件路径(~/.jupyter/jupyter_notebook_config.py)
12c.NotebookApp.ip = '0.0.0.0'c.NotebookApp.port = 8888
...
配置intel 10600kmicrostar Z490 unify itx主板阿斯加特 32G DDR41TB 阿斯加特 ssd500G 西数SN750 ssdGPU 5700XT机箱 乔思伯V8电源 全汉ms600w sfx小电源
成品123456789101112131415161718192021(base) andrew@255imac:~#neofetch 'c. andrew@imac ,xNMM. ----------- .OMMMMo OS: macOS 13.5 22G5038d x86_64 OMMM0, Host: Hackintosh (SMBIOS: iMac20,2) .;loddo:' loolloddol;. Kernel: 22.6.0 cKMMMMMMMMMMNWMMMMMMMMMM0: ...
>>> conda initialize >>>!! Contents within this block are managed by ‘conda init’ !!__conda_setup=”$(‘/opt/module/miniconda3/bin/conda’ ‘shell.bash’ ‘hook’ 2> /dev/null)”if [ $? -eq 0 ]; then eval “$__conda_setup”else if [ -f “/opt/module/miniconda3/etc/profile.d/conda.sh” ]; then . “/opt/module/miniconda3/etc/profile.d/conda.sh” else export PATH=”& ...