Linux 安装Git

Linux 安装Git

Debian/Ubuntu # apt-get install git Ubuntu 添加ppa 可以获取最新版本git # add-apt-repository ppa:git-core/ppa # apt update; apt install git Fedora # yum install git (up to Fedora 21) # dnf install git (Fedora 22......继续阅读
WordPress CMS主题 HJYL_HILAU

Debian下”bash:shutdown:command not found”的解决方法

在学习使用linux过程中,发现一个问题,当我使用su命令成为超级用户的时候,使用shutdown来关机或重启时,会给我一个"bash:shutdown:command not found" 在网上找了挺多的解决方法,终于解决了。现在把方法留下。 首先我们要知道为什么会出现这种问题:首先这个命令是一定存在的,现在找不到,估计是寻找的路径不对。所以我们要看看root用户的环境变量。 先切到root,......继续阅读
WordPress CMS主题 HJYL_HILAU

Debian – 使用root身份登录sftp

前言 默认安装好的debian, 不允许用root身份登录。 但是如果是自己玩的服务器,设置成允许root身份登录方便些。 更改配置 [code] cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old nano /etc/ssh/sshd_config 将 PermitRootLogin 改为 yes[/code] 重启sshd服务 [code] /et......继续阅读
WordPress CMS主题 HJYL_HILAU

Debian Docker 官方安装

使用官方安装脚本自动安装 安装命令如下: [code] curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh[/code] 原文参考https://www.runoob.com/docker/debian-docker-install.html
WordPress CMS主题 HJYL_HILAU

Debian利用ifconfig查看IP地址

一、查看debian系统是否安装ifconfig命令 使用whereis ifconfig可以看到没有安装ifconfig命令。 二、安装ifconfig命令 [code] sudo apt-get install net-tools[/code] 再次使用whereis ifconfig可以看到已经安装ifconfig命令。 三、使用ifconfig命令查看IP地址 [code] sudo if......继续阅读
打赏功能

debian下安装lftp

vps定时备份用lftp非常方便(详情请见此处),不过lftp不是自带的,需要自己安装.lftp需要readline支持.1、安装readline官方地址:http://cnswww.cns.cwru.edu/php/chet/readline/rltop.htmlwget -c ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gztar -zxvf re......继续阅读
打赏功能

【buyVM】关于KVM不能自动DHCP获取IP问题

这两天抢到buyVM的KVM128,兴奋不已啊,系统都重装了N遍,因为不能wget,update。即不能联网。非常奇怪,我们都可以VNC到这个主机,但这个主机不能连外网。于是百度找答案。可惜没一个完整的答案。经过自己研究终于搞定了。打开终端,输入命令,gedit /etc/resolv.conf(还是gedit好用,vi太难用了)输入以下内容address 205.185.113.2netmask......继续阅读