CentOS

CentOS

CentOS免密登录

这里介绍两种方式方式一登录服务器ssh-keygen-trsa-b2048会提示保存到什么地方,可以自己取名比如adtuuopensslrsa-inadtuu-outformpem>adtuu.pem下载pem到本地yuminstalllrzszszadtuu.pem本地登录服务器ssh-iadtuu.pemroot@ip方式二本地电脑ssh-keygen-trsa-b2048#会提示保存到什么地...
CentOS

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
CentOS

下载远程linux文件到本地(win下)

有些时候想将远程服务器上的文件下载到本地来查看,我们除了使用scp命令以外SCP命令用法参考:https://adtuu.com/article/10.html 还可以使用下面的方法首先你的Linux上需要安装安装lrzsz工具包yuminstalllrzszrz,sz是便是Linux/Unix同Windows进行ZModem文件传输的命令行工具,所以...
CentOS

virtualbox中centos系统与windows共享文件夹

首先安装增强功能可以看到这里报错了Couldnotmountthemedia/drive'D:\ProgramFiles\Oracle\VirtualBox\VBoxGuestAdditions.iso'(VERR_PDM_MEDIA_LOCKED).怎么处理呢,方法如下yuminstall-ygccgcc-develgcc-c++gcc-c++-develmakekernelkernel-develshutdown-hnow#安装完kernel...
CentOS

lnmp环境添加php memcached扩展

一、安装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
CentOS

Centos一键配置pptp VPN服务(转载)

文章来源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
CentOS

CentOS7源码安装LNAMP环境

软件版本centos7.4.1708apache2.4.33mysql8.0.11php7.2.5nginx1.14.0一、卸载软件,以Apache为例,有些服务器自带了apache软件,我们需要先卸载whereishttpdrpm-qa|grephttpdsystemctlstophttpd.service#先停掉服务yum-yremovehttpdrpm-qa|grephttpd#罗列软件包名称yum-exxxxxx#逐个...
CentOS

centos网络配置

例一,centos安装后,网络连接默认是关闭的,想要开机打开则1、ifconfig查看ip2、信息中有enp0s3、lo什么的,记住那个除lo之外的3、vi/etc/sysconfig/network-scripts/ifcfg-enp0s3ONBOOT=yes4、/etc/init.d/networkrestart或systemctlstartnetwork.service或servicenetworkrestart例...
CentOS

解决VirtualBox虚拟机不可使用

我们在使用VirtualBox的时候,如果非正常关闭虚拟机,极有可能出现虚拟机不可使用的情况,提示的错误如下:"Cannotattachmedium&#39;...xxx.iso&#39;{...}:mediumisalreadyassociatedwiththecurrentstateofmachineuuid{...}!".下面给出解决办法:1、找到用户目录下的VBOX文件并用文本...
热门搜索词