Linux
Halm2024
爸爸很懒,什么都没有写
展开
-
Centos部署YApi
参考博客 https://blog.csdn.net/dwyane__wade/article/details/103326927一、安装nodejs[root@localhost~]# yum -y install nodejs[root@localhost~]# node -v[root@localhost~]# npm -v原创 2021-03-02 19:44:33 · 84 阅读 · 0 评论 -
CentOS压缩命令zip
安装压缩、解压软件[root@localhost]# yum install -y zip[root@localhost]# yum install -y unzip压缩文件格式:zip 压缩文件名 源文件[root@localhost]# zip test.zip test压缩目录格式:zip -r 压缩文件名 源目录-r 选项会递归源目录,会将源目录里的文件及目录都打包进去[root@localhost]# zip -r test.zip test解压格式:unzip 压缩文原创 2020-09-10 08:20:28 · 318 阅读 · 0 评论 -
Centos安装、配置nginx
参考 https://www.cnblogs.com/jeffhong99/p/11362361.html安装nginx[root@localhost~]# yum -y install nginx安装成功后nginx的几个默认目录[root@localhost~]# whereis nginx 执行目录:/usr/sbin/nginx 模块所在目录:/usr/lib64/nginx/modules 配置所在目录:/etc/nginx/ 默认站点目录:/usr/share/nginx.原创 2020-09-07 16:56:33 · 132 阅读 · 0 评论 -
CentOS 自动备份MySQL
1、编写Shell脚本// 编写backuper.sh[root@localhost ~]# cd /root/mysql/backup[root@localhost backup]# vim backuper.sh#备份目录BACKUP_HOME=/root/mysql/backupDB_USERNAME=用户名DB_PASSWORD=密码#当前日期DATE=$(date +%...原创 2019-11-28 11:07:09 · 119 阅读 · 0 评论 -
CentOS7部署jar包
启动jar包// 1、进入jar包目录[root@localhost ~]# cd // 2、启动jar包,并指定log日志(nohup:关闭终端不停止程序;& :后台启动)[root@localhost ~]# nohup java -jar test.jar >nohup.log &关闭jar包// 1、根据程序端口获取PID(2030是我jar包内设置的端...原创 2019-10-18 08:19:16 · 4032 阅读 · 0 评论 -
Centos7设置Tomat开机自启
参考 https://www.jianshu.com/p/f0f8458e1631软件版本1.Linux:CentOS Linux release 7.6.1810 (Core)2.Tomcat:apache-tomcat-9.0.17安装步骤配置文件1、为Tomcat添加启动参数2、在/usr/lib/systemd/system路径下添加tomcat.service文件,内容...原创 2019-10-18 00:10:11 · 136 阅读 · 0 评论 -
Centos安装Redis
系统版本Linux:CentOS Linux release 7.6.1810 (Core)Redis:3.2.12安装Redis// 1.使用yum安装redis[root@localhost ~]# yum -y install redis// 2.启动redis[root@localhost ~]# systemctl start redis// 3.查看redis状态(...原创 2019-07-21 00:09:08 · 90 阅读 · 0 评论 -
Centos7 释放内存
sync; echo 3 > /proc/sys/vm/drop_caches原创 2019-06-17 16:14:01 · 9529 阅读 · 2 评论 -
Linux常用命令
系统版本Linux:CentOS Linux release 7.6.1810 (Core)Yum常用命令// 1、列出所有可更新的软件清单命令[root@localhost ~]# yum check-update// 2、更新所有软件命令[root@localhost ~]# yum update系统常用命令// 1、查看系统版本[root@localhost ~]# ...原创 2019-05-09 09:07:23 · 132 阅读 · 0 评论 -
CentOS 8下安装MySQL8.0
软件版本1.Linux:CentOS Linux release 7.6.1810 (Core)2.MySQL:mysql-8.0安装MySQL获取下载地址1、登录MySQL官网:https://dev.mysql.com2、Download - Commuity - MySQL Community Server Select Operating System3、选择 Red Hat...原创 2019-04-03 17:34:54 · 251 阅读 · 0 评论 -
Linux环境下搭建FTP服务器
软件版本1.Linux:CentOS Linux release 7.6.1810 (Core)2.FTP:vsftpd-3.0.2-25.el7.x86_64安装vsftpd// 1.检查是否安装了vsftpd(如果显示版本号,则说明已安装)[root@localhost]# rpm -q vsftpd// 2、安装vsftpd yum install vsftpd -y// 3...原创 2019-04-08 18:22:31 · 593 阅读 · 0 评论 -
Linux环境下启动Tomcat太慢
问题分析JVM因为某种原因被阻塞解决思路安装rngd服务(熵服务)解决方法// 1.安装rngd服务yum install rngd-tools// 2.启动服务systemctl start rngd原创 2019-04-08 12:31:35 · 264 阅读 · 0 评论 -
Linux常用命令:用户
软件环境Linux:CentOS Linux release 7.6.1810 (Core)用户添加用户[root@localhost ~]$ adduser testuser[root@localhost ~]$ useradd testuser原创 2019-03-28 21:45:21 · 108 阅读 · 0 评论 -
Linux环境下配置Tomat
软件版本1.Linux:CentOS Linux release 7.6.1810 (Core)2.Tomcat:apache-tomcat-8.5.39.tar.gz安装步骤1.从官网将压缩包下载下来2.利用FTP工具压缩包上传至服务器3.解压压缩包[root@localhost ~]# tar -xvzf apache-tomcat-8.5.39.tar.gz4.到此就差不多...原创 2019-03-27 21:01:29 · 213 阅读 · 0 评论 -
CentOS 环境下配置MySQL8.0
软件版本1.Linux:CentOS Linux release 7.6.1810 (Core)2.MySQL:mysql-5.7.25找到你的配置文件配置文件名:my.cnf我的配置文件路径:/etc/my.cnf找不到的同学可以用命令行全盘搜索[root@localhost ~]# find / -name my.cnf编辑配置文件[client]default-ch...原创 2019-03-27 20:39:23 · 938 阅读 · 5 评论 -
Linux环境下配置JDK
Linux环境配置JDK你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。软件版本1.Linux:CentOS Linux release 7.6.1810 (Core)2.JDK:1.8.0_201配置JDK环境变量1.进入/etc/目录下2.编辑profil...原创 2019-03-27 19:19:50 · 128 阅读 · 0 评论 -
Linux常用命令:FireWall
软件环境Linux:CentOS Linux release 7.6.1810 (Core)命令在6.x中用的是iptables,但在CentOS 7.x中,使有了一种新的防火墙策略:FireWall。// 1、查询防火墙状态// 方法一:输出running表示已经开启,反之没有[root@localhost ~]# firewall-cmd --state// 方法二:Ac...原创 2019-10-24 09:43:24 · 116 阅读 · 0 评论 -
Linux环境下安装Jdk
软件版本1.Linux:CentOS Linux release 7.6.1810 (Core)2.Jdk:1.8.0查看当前JDK版本[root@localhost ~]# java -version拆卸当前JDKtodo 拆卸当前JDK安装JDK(Yum方法)// 1、查找java相关得列表[root@localhost ~]# yum -y list java*/...原创 2019-04-04 10:51:20 · 108 阅读 · 0 评论