安安茶茶

没有谁会为你踏雪而来,喜欢的风景要躬亲筚路。人生有什么意义,接受赠予+22181803=VQ

  博客园  :: 首页  :: 新随笔  :: 联系 ::  :: 管理

随笔分类 -  linux

摘要:脚本安装地址: https://github.com/angristan/wireguard-install curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install. 阅读全文
posted @ 2025-07-02 10:14 长虫山小木屋 阅读(1264) 评论(0) 推荐(0)

摘要:Debian配置系统中文语言及环境对于使用Debian系统的中文用户来说,配置一个完善的中文环境至关重要。本文将指导您如何在Debian系统中设置中文语言和环境,以获得最佳的中文使用体验。更新系统包开始配置前,建议更新系统包以确保所有软件为最新版本。执行以下命令:sudo apt updatesud 阅读全文
posted @ 2025-04-08 14:19 长虫山小木屋 阅读(419) 评论(0) 推荐(0)

摘要:用linux硬盘ext4备份windows文件时候出现linux File name too long错误,查阅资料得知,ext4和ntfs格式一样支持255个字符的文件名,区别是ext4一个汉字占用3个字符。 比如: echo 1> 轻轻巧巧去去去去去去轻轻巧巧去去去去去去轻轻巧巧去去去去去去轻轻 阅读全文
posted @ 2025-04-08 10:58 长虫山小木屋 阅读(231) 评论(0) 推荐(0)

摘要:挂载Windows共享文件夹(SMB/CIFS) 安装必要的软件包: apt-get install cifs-utils 创建挂载点: mkdir /mnt/shares 挂载共享文件夹: mount -t cifs //Windows_IP/Share_Name /mnt/shares -o u 阅读全文
posted @ 2025-04-07 16:24 长虫山小木屋 阅读(98) 评论(0) 推荐(0)

摘要:watch -n 1 "cat /proc/cpuinfo | grep 'cpu MHz'" -n参数1秒刷新 另外查看cpu参数: lscpu 网卡速率: apt-get install ethtool ethtool enp4s0 查看网卡名称可以 ip a 实时网速: apt-get ins 阅读全文
posted @ 2025-03-26 11:58 长虫山小木屋 阅读(138) 评论(0) 推荐(0)

摘要:最初配置: server { listen 8001; #反向代理暴露在公网上的端口 server_name localhost; #IP #charset koi8-r; #access_log logs/host.access.log main; location /pub { #将/pub及p 阅读全文
posted @ 2025-03-20 11:47 长虫山小木屋 阅读(217) 评论(0) 推荐(0)

摘要:一、安装Samba服务在Debian系统中,可以使用以下命令安装Samba服务:apt-get updateapt-get upgrade apt-get install samba二、创建共享文件夹使用以下命令创建一个共享文件夹:mkdir -p /srv/samba/sharechmod 777 阅读全文
posted @ 2025-03-19 17:03 长虫山小木屋 阅读(622) 评论(0) 推荐(0)

摘要:如果你想在Debian系统中挂载一个名为sdb的数据盘,你可以按照以下步骤操作。请注意,这里假设sdb是整个磁盘的设备名,而不是特定的分区。如果你想要挂载磁盘上的特定分区,设备名可能会是sdb1、sdb2等。如下是我执行成功得命令,实际应该分盘这个步骤缺少分盘步骤,下方有分盘步骤我没有成功但也记录下 阅读全文
posted @ 2025-03-13 15:27 长虫山小木屋 阅读(388) 评论(0) 推荐(0)

摘要:vi /etc/systemd/system/xxx.service [Unit] Description=My Screen Session After=network.target [Service] Type=forking ExecStart=/usr/bin/screen -dmS mys 阅读全文
posted @ 2025-03-11 10:51 长虫山小木屋 阅读(159) 评论(0) 推荐(0)

摘要:首先改静态ip vi /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more informat 阅读全文
posted @ 2025-03-06 10:09 长虫山小木屋 阅读(322) 评论(0) 推荐(0)

摘要:vi /usr/local/pureftpd/etc/pure-ftpd.conf配置文件的位置#ForcePassiveIP xx.xx.xx.xx 注释的没必要修改,看看里面的端口配置服务器安全组应该添加20000-30000端口放行重启pureftp服务systemctl restart pu 阅读全文
posted @ 2025-03-04 10:33 长虫山小木屋 阅读(45) 评论(0) 推荐(0)

摘要:申请地址:https://aws.amazon.com/cn/campaigns/freecenter-select-region-ps/ 自己注册个账号,需要绑定下信用卡,不乱用自己的卡就行。 让后选择海外主机,EC2,启动新实例 云服务器 - 12 个月免费 Amazon EC2 存储可以调整到 阅读全文
posted @ 2025-03-02 10:20 长虫山小木屋 阅读(287) 评论(0) 推荐(0)

摘要:debian12.9自带python3.11和程序不匹配,只好删除python重装,基本过程如下: apt-get install aptitudeaptitude remove python3.11用aptitude来卸载,应为直接apt-get remove会提示依赖问题 然后安装3.7: wg 阅读全文
posted @ 2025-02-12 14:15 长虫山小木屋 阅读(123) 评论(0) 推荐(0)

摘要:apt-get install rsynccp /usr/share/doc/rsync/examples/rsyncd.conf /etc/vi /etc/rsyncd.conf编辑文件,按需要修改即可auth users = appbackup # 认证的用户名,如果没有这行,则表明是匿名sec 阅读全文
posted @ 2025-02-02 20:11 长虫山小木屋 阅读(56) 评论(0) 推荐(0)

摘要:先修改php函数启用system vi /usr/local/php/etc/php.ini disable functions 里面删除system 修改php账号执行权限www vi /etc/sudoers...root ALL=(ALL) ALL这里复制一行: www ALL=(ALL) N 阅读全文
posted @ 2024-03-22 11:21 长虫山小木屋 阅读(174) 评论(0) 推荐(0)

摘要:#!/bin/bash ###获取当前时间 time="$(date +"%Y%m%d-%H:%M")" ###查看fpm服务是否运行 i=`netstat -an | grep php-cgi | wc -l` if [ $i = 0 ] then ###重启php服务 /etc/init.d/p 阅读全文
posted @ 2024-03-20 21:41 长虫山小木屋 阅读(77) 评论(0) 推荐(0)

摘要:安装了虚拟机自带的vmware tools,还是不行 试试这样: yum install open-vm-tools yum install open-vm-tools-desktop 或者: sudo apt-get autoremove open-vm-tools sudo apt-get in 阅读全文
posted @ 2023-09-25 13:55 长虫山小木屋 阅读(604) 评论(0) 推荐(0)

摘要:stty erase ^h stty erase ^? 试试那种方式何时 阅读全文
posted @ 2022-04-02 12:44 长虫山小木屋 阅读(237) 评论(0) 推荐(0)

摘要:cd .ssh chmod 600 authorized_keys 还是不行,看日志 tail -f /var/log/auth.log bad ownership or modes for directory /root 去根目录 chown root.root root 再试可以了 阅读全文
posted @ 2022-04-02 12:04 长虫山小木屋 阅读(238) 评论(0) 推荐(0)

摘要:32-bit: wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf - 64-bit: wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | t 阅读全文
posted @ 2022-01-18 16:07 长虫山小木屋 阅读(111) 评论(0) 推荐(0)