摘要:临时修改NS: 修改 /etc/resolv.conf nameserver 字段 sudo vim /etc/resolv.conf 重启网络服务 sudo systemctl restart networking.service 但是这是 # Generated by NetworkManage
阅读全文
|
随笔分类 - linux
摘要:临时修改NS: 修改 /etc/resolv.conf nameserver 字段 sudo vim /etc/resolv.conf 重启网络服务 sudo systemctl restart networking.service 但是这是 # Generated by NetworkManage
阅读全文
摘要:vi /usr/local/pureftpd/etc/pure-ftpd.conf配置文件的位置#ForcePassiveIP xx.xx.xx.xx 注释的没必要修改,看看里面的端口配置服务器安全组应该添加20000-30000端口放行重启pureftp服务systemctl restart pu
阅读全文
摘要:申请地址:https://aws.amazon.com/cn/campaigns/freecenter-select-region-ps/ 自己注册个账号,需要绑定下信用卡,不乱用自己的卡就行。 让后选择海外主机,EC2,启动新实例 云服务器 - 12 个月免费 Amazon EC2 存储可以调整到
阅读全文
摘要:debian12.9自带python3.11和程序不匹配,只好删除python重装,基本过程如下: apt-get install aptitudeaptitude remove python3.11用aptitude来卸载,应为直接apt-get remove会提示依赖问题 然后安装3.7: wg
阅读全文
摘要:apt-get install rsynccp /usr/share/doc/rsync/examples/rsyncd.conf /etc/vi /etc/rsyncd.conf编辑文件,按需要修改即可auth users = appbackup # 认证的用户名,如果没有这行,则表明是匿名sec
阅读全文
摘要:先修改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
阅读全文
摘要:#!/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
阅读全文
摘要:安装了虚拟机自带的vmware tools,还是不行 试试这样: yum install open-vm-tools yum install open-vm-tools-desktop 或者: sudo apt-get autoremove open-vm-tools sudo apt-get in
阅读全文
摘要:stty erase ^h stty erase ^? 试试那种方式何时
阅读全文
摘要:cd .ssh chmod 600 authorized_keys 还是不行,看日志 tail -f /var/log/auth.log bad ownership or modes for directory /root 去根目录 chown root.root root 再试可以了
阅读全文
摘要: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
阅读全文
摘要:git fetch --all git reset --hard origin/master git pull
阅读全文
摘要:1、在本地要部署的目录 git initgit clone --bare ./ my_project.git 把本地init仓库克隆到 my_project.git 2、上传my_project.git所有内容到服务器某处,比如 /home/test/ 3、在服务器,/home/test/my_pr
阅读全文
摘要:开启命令: shopt -s extglob 开始删除 rm -rf !(file1|file2) 关闭命令: shopt -u extglob
阅读全文
ubuntu安装dropbox的时候ImportError: libGL.so.1: cannot open shared object file: No such file or directory
摘要:ImportError: libGL.so.1: cannot open shared object file: No such file or directory 解决办法: $ sudo apt-get update $ sudo apt-get install -y libgl1-mesa-d
阅读全文
摘要:1、配置域名解析,一般一个二级域名,一个三级域名,例如:2.a.cn(二级用作服务端) b.2.a.cn(三级域名用作真实访问地址) 2、开放服务器端口,默认 80(http访问)、443(https访问)、4443(4443是服务端口) 3、安装git 和Golang yum install bu
阅读全文
摘要:1、https://github.com/ -->Pricing and Signup -->Create a free account 2、生成公钥:私钥 ssh-keygen -t rsa -C xxxxx@qq.com(注册github时的email) 3、登陆github,选择Account
阅读全文
摘要:vi .bashrc alias ll那一行的#去掉 然后执行 source .bashrc
阅读全文
摘要:apt update apt upgrade apt clean apt autoclean apt autoremove
阅读全文
|