-
近期文章
近期评论
- admin 发表在《HTML中 table保存xls表格》
- admin 发表在《PDF文件分割图片》
- admin 发表在《混乱的五月即将告以段路》
- admin 发表在《系规看来不是300页那么简单》
- admin 发表在《系规看来不是300页那么简单》
归档
- 2026 年 10 月
- 2026 年 9 月
- 2026 年 8 月
- 2026 年 7 月
- 2026 年 6 月
- 2026 年 5 月
- 2026 年 4 月
- 2026 年 3 月
- 2026 年 2 月
- 2026 年 1 月
- 2025 年 12 月
- 2025 年 11 月
- 2025 年 10 月
- 2025 年 9 月
- 2025 年 8 月
- 2025 年 7 月
- 2025 年 6 月
- 2025 年 5 月
- 2025 年 4 月
- 2025 年 3 月
- 2025 年 2 月
- 2025 年 1 月
- 2024 年 12 月
- 2024 年 11 月
- 2024 年 10 月
- 2024 年 9 月
- 2024 年 8 月
- 2024 年 7 月
- 2024 年 6 月
- 2024 年 5 月
- 2024 年 4 月
- 2024 年 2 月
- 2024 年 1 月
- 2023 年 12 月
- 2023 年 11 月
- 2023 年 10 月
- 2022 年 10 月
- 2022 年 9 月
- 2022 年 8 月
- 2022 年 7 月
- 2022 年 6 月
- 2022 年 5 月
- 2022 年 4 月
- 2022 年 3 月
- 2022 年 1 月
- 2021 年 11 月
- 2021 年 10 月
- 2021 年 9 月
- 2021 年 4 月
- 2020 年 11 月
- 2020 年 10 月
- 2020 年 8 月
- 2020 年 5 月
- 2020 年 4 月
- 2020 年 1 月
- 2019 年 11 月
- 2019 年 7 月
- 2019 年 2 月
- 2019 年 1 月
- 2018 年 12 月
- 2018 年 11 月
- 2018 年 8 月
分类
友情链接
其他操作
linux 挂载SMB ubuntu
安装
apt install cifs-utils
创建目录
mkdir -p /mnt/smb
挂载
mount -t cifs //172.16.11.12/smb /mnt/smb
mount -t cifs -o guest //172.16.11.12/smb /mnt/smb
匿名登入
mount -t cifs -o username=smb,password=12345,ver=3.0 //172.16.11.12/smb /mnt/smb
设置用户名和密码以及版本3.0 新的windows下面的SMB
重启挂载会失效
删除挂载
umount /mnt/smb
OLLAMA启动设置KVcache 更新
ubuntu下启动设置
OLLAMA_CONTEXT_LENGTH=8192 ollama serve
OLLAMA_KV_CACHE_TYPE=q8_0
OLLAMA_HOST=0.0.0.0:11434
可以放在上面,但是鉴权还是得用NGINX上做
模型启动设置tkink=false
ollama run bonsai-2:9b –verbose –think=false
更新
更新
zstd -d ollama-linux-amd64.tar.zst
sudo tar -xvf ollama-linux-amd64.tar -C /usr/local
xpath 样板
phone=driver.find_element(By.XPATH,'((//div[contains(@class,"app-tabs-content-container")])[2]//div[contains(text(),"联系电话")]/following-sibling::div)[1]').text
其中xptah原文
((//div[contains(@class,"app-tabs-content-container")])[2]//div[contains(text(),"联系电话")]/following-sibling::div)[1]
一个是第二个DIV下查询其中的一个DIV的中的第一个
使用了双括号
ollama ubuntu22.04 离线安装
下载库 https://github.com/ollama/ollama/releases
sudo apt update
sudo apt install zstd
# 替换成你的文件名
zstd -d ollama-linux-amd64.tar.zst
sudo tar -xvf ollama-linux-amd64.tar -C /usr/local
ollama –version
vi /etc/systemd/system/ollama.service
写入文件信息
[Unit]
Description=Ollama Service
After=network-online.target
[Service]
ExecStart=/usr/local/bin/ollama serve
User=root
Group=root
Restart=always
RestartSec=3
Environment="PATH=$PATH"
[Install]
WantedBy=default.target
执行
sudo systemctl daemon-reload
sudo systemctl enable ollama
sudo systemctl start ollama
sudo systemctl status ollama
常用配置(可选)
允许外网访问(11434 端口)
编辑 service 文件,在 [Service] 下增加环境变量:
Environment="OLLAMA_HOST=0.0.0.0:11434"
Environment="OLLAMA_ORIGINS=*"
改完重载 + 重启服务
sudo systemctl daemon-reload
sudo systemctl restart ollama
修改模型存储目录
Environment="OLLAMA_MODELS=/data/ollama/models"