Myluzh Blog

Strive to become a dream architect.

Linux下删除乱码文件及文件夹

2020-12-28 myluzh Linux

使用 ls -i 命令找到文件或目录的 inode节点号 删除文件(用 inode 替换下面的 12345678): find -inum  12345678 -delete 删除目录(会提示 No such file or directory): find -inum  12345678 -exec rm -rf {} \;

阅读全文>>

标签: linux 乱码

评论(0) (861)

CentOS7 安装GNOME桌面 开启VNC连接

2020-12-25 myluzh Linux

0x01安装GNOME桌面 1.更新系统 yum -y upgrade 2.安装必要的软件包 yum -y install grub2-efi fwupdate 3.安装GNOME桌面 yum -y groupinstall 'GNOME Desktop' 'Graphical Administration Tools' 4.如何卸载GNOME桌面? sudo yum groupremove "GNOME Desktop" 配置默认启动方式: 查看系统的2种启动模式: vi /etc/inittab //查询当前的默认设置: systemctl get-default //启动切换图形化界面: //使用startx命令必须在vmware里面或者virtualbox里面,不能在远程ssh连接工具(putty)上使用,不然会报错不能启动。 startx //设置默认启动为图形化界面: systemctl set-default graphical.target //设置默认启动为命令行界面: systemctl set-default multi-user.target //命令行界面...

阅读全文>>

标签: centos gnome vnc

评论(0) (759)

Linux 启动服务 systemctl命令

2020-12-19 myluzh Linux

systemctl is-enabled servicename.service #查询服务是否开机启动 systemctl enable *.service #开机运行服务 systemctl disable *.service #取消开机运行 systemctl start *.service #启动服务 systemctl stop *.service #停止服务 systemctl restart *.service #重启服务 systemctl reload *.service #重新加载服务配置文件 systemctl status *.service #查询服务运行状态

阅读全文>>

标签: centos linux ubuntu systemctl

评论(0) (641)

Ubuntu 20.04 换国内源

2020-12-18 myluzh Linux

文件位置:/etc/apt/sources.list #添加阿里源 deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ ...

阅读全文>>

标签: ubuntu

评论(0) (616)

Ubuntu 20.04 安装配置LNMP环境

2020-12-18 myluzh Linux

0x01安装Nginx 安装Nginx sudo apt-get install nginx 启动Nginx服务 sudo /etc/init.d/nginx start 停止Nginx服务 sudo /etc/init.d/nginx stop 加载最新配置 sudo /etc/init.d/nginx reload 默认配置文件位置简单配置 /etc/nginx/sites-enabled/default server { listen 80; server_name localhost; root /var/www/html; location / { index index.php index.html; #autoindex off; } #开启php location ~ \.php(.*)$ { #"netstat -npl | grep php"可以找到php run路径 ...

阅读全文>>

标签: ubuntu lnmp

评论(0) (482)

CentOS7安装谷歌bbr加速

2020-11-10 myluzh Linux

!测试环境为CentOS 7 x64。CentOS 6及以下版本不通用 0x01  yum系统更新(更新到7.3) yum update 0x02  查看系统版本 cat /etc/redhat-release 输出如下,则表示已升级到7.3 CentOS Linux release 7.3.1611 (Core) 0x03  安装elrepo并升级内核 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum --enablerepo=elrepo-kernel install kernel-ml -y 正常情况下将输出如下: Transaction Summary ================================================================================ Insta...

阅读全文>>

标签: centos bbr

评论(0) (790)