随笔分类 -  Linux

一些Linux问题的解决方案
摘要:#### 1.更新本地包缓存 ```shell sudo apt update ``` #### 2.查看可以升级的软件包 ```shell apt list --upgradable ``` #### 3.预览升级 ```shell apt -s upgrade ``` #### 4.升级 ### 阅读全文
posted @ 2023-07-06 14:44 SpringCore 阅读(6671) 评论(0) 推荐(0)
摘要:#### 1.安装 ```shell sudo apt-get update sudo apt-get install neofetch ``` #### 2.执行 ```shell neofetch ``` 阅读全文
posted @ 2023-06-12 10:05 SpringCore 阅读(26) 评论(0) 推荐(0)
摘要:转自https://www.cnblogs.com/tonyc/p/10432871.html 设置方法如下: vi /etc/pam.d/gdm-autologin 找到下面这一行 auth required pam_succeed_if.so user != root quiet_success 阅读全文
posted @ 2023-05-02 15:25 SpringCore 阅读(456) 评论(0) 推荐(0)
摘要:1.将用户和Shell环境一起切换成root身份 su - root 2.编辑sshd_config文件 vi /etc/ssh/sshd_config 3.修改配置 默认的Authentication区块 # Authentication: #LoginGraceTime 2m #PermitRo 阅读全文
posted @ 2023-05-02 15:11 SpringCore 阅读(2018) 评论(0) 推荐(0)
摘要:##### 1.更新源 ```shell sudo apt update && sudo apt upgrade -y ``` ##### 2.安装SSH(OpenSSH) ```shell sudo apt install openssh-server -y ``` ##### 3.使用syste 阅读全文
posted @ 2023-05-02 14:12 SpringCore 阅读(1637) 评论(0) 推荐(0)
摘要:官方下载地址:https://www.zabbix.com/download 1.下载rpm包 wget -P /home https://repo.zabbix.com/zabbix/6.2/rhel/8/x86_64/zabbix-release-6.2-3.el8.noarch.rpm 2.安 阅读全文
posted @ 2023-01-14 12:09 SpringCore 阅读(532) 评论(0) 推荐(0)
摘要:前提条件: Centos 二进制安装 Prometheus 1.下载安装 下载地址:https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1&edition=oss wget https://dl.grafana. 阅读全文
posted @ 2023-01-13 12:24 SpringCore 阅读(591) 评论(0) 推荐(0)
摘要:二进制下载地址:https://prometheus.io/download/ 下载以 linux-amd64.tar.gz 结尾的文件。 1.下载二进制压缩包 wget -P /home https://github.com/prometheus/prometheus/releases/downl 阅读全文
posted @ 2023-01-12 18:35 SpringCore 阅读(263) 评论(0) 推荐(0)
摘要:转载文章,地址:http://hi.baidu.com/wangtao8899/blog/item/dd7365c41c5423a18226ace1.html 1.开机启动时自动运行程序 Linux加载后, 它将初始化硬件和设备驱动,然后运行第一个进程init。init根据配置文件继续引导过程,启动 阅读全文
posted @ 2023-01-11 15:47 SpringCore 阅读(485) 评论(0) 推荐(0)
摘要:推荐直接看第8条,使用Docker直接部署SVN+图形管理,如果版本管理的仓库比较多的话,更加具有优势,不必经常登录服务器维护。 1.安装Subversion yum install subversion yum install mod_dav_svn #不需要http访问svn可不安装,可选 2. 阅读全文
posted @ 2023-01-11 13:50 SpringCore 阅读(157) 评论(0) 推荐(0)
摘要:在安装过程中可能多个仓库提供了相同的软件安装源,由于优先级问题可能无法正确指向我们想要使用的仓库源,Centos 8及之后DNF原生支持优先级,可以使用下面的命令进行调整 dnf config-manager --setopt=WANdisco-SVN.priority=1 --save 也可以临时 阅读全文
posted @ 2023-01-10 17:34 SpringCore 阅读(174) 评论(0) 推荐(0)
摘要:使用密钥登录分为以下步骤: 1、生成密钥(公钥与私钥) 2、放置公钥(Public Key)到服务器指定用户目录的 .ssh/authorized_key文件中; 3、配置SSH客户端使用密钥登录。 4、测试密钥登陆成功后关闭密码登录。【可选】 1.生成密钥 cd /root/.ssh #进入指定用 阅读全文
posted @ 2022-12-30 16:39 SpringCore 阅读(8827) 评论(0) 推荐(0)
摘要:准备工作: 1.安装git yum install git 2.安装mysql【略】,mysql只是可选的数据库其中之一,可选的还有 postgres,mssql,sqlite3 ... 注:需要创建保存gitea数据的数据库 CREATE DATABASE giteadb CHARACTER SE 阅读全文
posted @ 2022-12-29 18:09 SpringCore 阅读(921) 评论(0) 推荐(0)
摘要:1.查看分区信息 fdisk -l 2.显示系统上可使用的磁盘空间 df -h 3.查看未挂载的磁盘 lsblk -f 4.磁盘新建分区【以$开头的代表需要命令,其余为输出内容,注意识别】 1.使用 fdisk $ fdisk /dev/sdb welcome to fdisk (util-linu 阅读全文
posted @ 2022-12-08 16:32 SpringCore 阅读(1311) 评论(0) 推荐(0)
摘要:参考地址:https://www.elastic.co/guide/en/kibana/8.5/rpm.html#rpm-repo 1.下载并安装公共签名密钥 rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch 2.创建软件 阅读全文
posted @ 2022-12-04 17:50 SpringCore 阅读(513) 评论(0) 推荐(0)
摘要:参考网站:https://www.elastic.co/guide/en/logstash/8.5/installing-logstash.html#_yum 1.下载并安装公共签名密钥 rpm --import https://artifacts.elastic.co/GPG-KEY-elasti 阅读全文
posted @ 2022-12-04 17:03 SpringCore 阅读(503) 评论(0) 推荐(0)
摘要:参考网站:https://www.elastic.co/guide/en/elasticsearch/reference/8.5/rpm.html#rpm-repo 1.导入Elasticsearch GPG签名密钥 rpm --import https://artifacts.elastic.co 阅读全文
posted @ 2022-12-04 13:54 SpringCore 阅读(1341) 评论(0) 推荐(0)
摘要:1.下载地址:https://adoptium.net/zh-CN/temurin/releases/?version=8 选择Linux平台 命令行界面的找到下载地址使用wget或者curl进行下载【下载地址可能需要使用加速】 wget https://github.com/adoptium/te 阅读全文
posted @ 2022-12-04 13:35 SpringCore 阅读(2560) 评论(0) 推荐(0)
摘要:Debian 默认apt-get源为从cd介质安装 ⒈备份官方默认更新源文件 cp /etc/apt/sources.list /etc/apt/sources.list.bak 备份官方更新源文件 ⒉编辑 1.打开 vi /etc/apt/sources.list 2.清空内容 ESC后进入命令模 阅读全文
posted @ 2020-12-10 18:50 SpringCore 阅读(6625) 评论(0) 推荐(1)
摘要:使用存储库安装 首次安装Docker-ce之前,需要设置Docker存储库。便可以从存储库安装和更新Docker。 设置存储库 1.安装yum-utils软件包(提供yum-config-manager 实用程序)并设置稳定的存储库。 //1.安装yum-utils sudo yum install 阅读全文
posted @ 2020-06-19 11:23 SpringCore 阅读(1181) 评论(0) 推荐(0)