CentOS
这里介绍两种方式方式一登录服务器ssh-keygen-trsa-b2048会提示保存到什么地方,可以自己取名比如adtuuopensslrsa-inadtuu-outformpem>adtuu.pem下载pem到本地yuminstalllrzszszadtuu.pem本地登录服务器ssh-iadtuu.pemroot@ip方式二本地电脑ssh-keygen-trsa-b2048#会提示保存到什么地...
阅读702019-08-29 09:16:15
CentOS
#显示当前使用的PS1样式echo$PS1vi/etc/profile.d/env.shPS1="[\[\e[1;41;33m\]\u@\h\t\w]\$\e[0m\]"source/etc/profile.d/env.sh#在/etc/profile.d目录下新建myshell.sh===========myshell.sh======================================================================HISTSIZE=10
阅读4882019-08-27 15:07:13
CentOS
有些时候想将远程服务器上的文件下载到本地来查看,我们除了使用scp命令以外SCP命令用法参考:https://adtuu.com/article/10.html 还可以使用下面的方法首先你的Linux上需要安装安装lrzsz工具包yuminstalllrzszrz,sz是便是Linux/Unix同Windows进行ZModem文件传输的命令行工具,所以...
阅读1432018-12-26 13:58:33
CentOS
首先安装增强功能可以看到这里报错了Couldnotmountthemedia/drive'D:\ProgramFiles\Oracle\VirtualBox\VBoxGuestAdditions.iso'(VERR_PDM_MEDIA_LOCKED).怎么处理呢,方法如下yuminstall-ygccgcc-develgcc-c++gcc-c++-develmakekernelkernel-develshutdown-hnow#安装完kernel...
阅读2962018-11-20 10:29:27
CentOS
vi/etc/resolv.confnameserver8.8.8.8nameserver8.8.4.4
阅读792018-10-11 14:06:23
CentOS
一、安装memcachedwgethttps://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gztarzxvflibevent-2.1.8-stable.tar.gzcdlibevent-2.1.8-stable./configure--prefix=/usr/local/libeventmake&&makeinstallwgethttp://m
阅读1812018-06-22 21:56:48
CentOS
文章来源https://blog.linuxeye.cn/412.html安装脚本wgethttp://mirrors.linuxeye.com/scripts/vpn_centos.shchmod+x./vpn_centos.sh./vpn_centos.sh脚本内容#!/bin/bash##Author:yeho<lj2007331ATgmail.com>#Blog:https://blog.linuxeye.com##InstallsaPPTPVPN-onlysystemforCentO
阅读11622018-06-10 20:09:58
CentOS
软件版本centos7.4.1708apache2.4.33mysql8.0.11php7.2.5nginx1.14.0一、卸载软件,以Apache为例,有些服务器自带了apache软件,我们需要先卸载whereishttpdrpm-qa|grephttpdsystemctlstophttpd.service#先停掉服务yum-yremovehttpdrpm-qa|grephttpd#罗列软件包名称yum-exxxxxx#逐个...
阅读8942018-05-17 17:50:52
CentOS
例一,centos安装后,网络连接默认是关闭的,想要开机打开则1、ifconfig查看ip2、信息中有enp0s3、lo什么的,记住那个除lo之外的3、vi/etc/sysconfig/network-scripts/ifcfg-enp0s3ONBOOT=yes4、/etc/init.d/networkrestart或systemctlstartnetwork.service或servicenetworkrestart例...
阅读1242018-05-17 16:27:38
CentOS
我们在使用VirtualBox的时候,如果非正常关闭虚拟机,极有可能出现虚拟机不可使用的情况,提示的错误如下:"Cannotattachmedium'...xxx.iso'{...}:mediumisalreadyassociatedwiththecurrentstateofmachineuuid{...}!".下面给出解决办法:1、找到用户目录下的VBOX文件并用文本...
阅读27802018-05-17 09:06:24