2019年6月18日

摘要: 环境CentOS7.1 2.9t磁盘 fdisk 只能分区小于2t的磁盘,大于2t的话,就要用到parted 1,将磁盘上原有的分区删除掉: 进入:#parted /dev/sdb 查看:(parted)p 删除:(parted)rm 1 (parted)rm 2 2,将磁盘格式变成gpt的格式(因 阅读全文
posted @ 2019-06-18 15:03 recall_lonely 阅读(415) 评论(0) 推荐(0) 编辑

2019年6月5日

摘要: 2019-05-16 14:50:36 1、文件查看命令 (1)、cat 从头看到尾 查看全部文件 -n 显示行号 (2) less more 可以分也查看文件内容 (3) head 查看头部文件 -n 查看前几行 -n3 表示前三行 (4) tail 查看文件尾部 -f 常跟 -f 一起使用 2、 阅读全文
posted @ 2019-06-05 09:23 recall_lonely 阅读(382) 评论(0) 推荐(0) 编辑

2019年4月24日

该文被密码保护。 阅读全文
posted @ 2019-04-24 14:32 recall_lonely 阅读(12) 评论(0) 推荐(0) 编辑

2019年4月23日

摘要: Java 开发环境 环境和版本介绍: 系统环境: CentOS-7-x86_64- 1810 软件本版 J d k 版本 jdk-8u181-linux-x64 Tomcat 版本 apache-tomcat-8.5.20 Mysql 版本 mysql5.7.16 一、JDK安装三种方式 1.方法一 阅读全文
posted @ 2019-04-23 20:14 recall_lonely 阅读(729) 评论(0) 推荐(0) 编辑
 
摘要: 1.修改 /etc/my.cnf配置文件,在 [mysqld]下添加一行: skip-grant-tables=1 这一行配置让 mysqld 启动时不对密码进行验证 2.重启 mysqld 服务: systemctl restart mysqld 3.使用 root 用户登录到 mysql: my 阅读全文
posted @ 2019-04-23 10:26 recall_lonely 阅读(321) 评论(0) 推荐(0) 编辑
 
摘要: 系统 查看系统版本号 #cat /etc/redhat-release Ngixn 启动和重新启动nginx(/usr/local/ngixn/sbin/nginx) #./nginx -s reload 重启#./nginx nginx systemctl自启配置(nginx安装位置/usr/lo 阅读全文
posted @ 2019-04-23 10:07 recall_lonely 阅读(222) 评论(0) 推荐(0) 编辑
 
摘要: 在Linux下安装 nginx 1下载对应当前系统版本的nginx包(package) wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 2建立nginx的y 阅读全文
posted @ 2019-04-23 09:58 recall_lonely 阅读(103) 评论(0) 推荐(0) 编辑
 
摘要: Cnetos 服务器安装过程 1、制作U盘启动器 网上有很多制作U盘启动的教程,这里就不详细说了 2、用U盘启动电脑进入安装界面 3、开始安装 等待片刻后,正常的应该会进入语言选择界面了。 选择中文,然后选择继续 4、开始安装(选择安装的版本) 5、开始安装(选择安装的位置其他默认然后开始安装) 6 阅读全文
posted @ 2019-04-23 09:54 recall_lonely 阅读(295) 评论(0) 推荐(0) 编辑
 
摘要: 1.启动系统,并在GRUB2启动屏显时,按下e键进入编辑模式。 2.在linux16/inux/linuxef所在参数行ro更改为init=/sysroot/bin/sh 3.按Crl+x启动到shell. 4.挂载文件系统为可写模式: mount -o remount ,rw /sysroot 5 阅读全文
posted @ 2019-04-23 09:46 recall_lonely 阅读(1005) 评论(0) 推荐(0) 编辑

2019年4月10日

摘要: Rsync + sersync 实时同步备份 一 Rsync + Sersync 实时同步介绍 1.Rsync 服务搭建介绍 云机上搭建Rsync server,在本地搭建Rsync Clinet. 2. Sersync 服务搭建介绍 在本地服务器上搭建 Sersync Server 检测本地的ft 阅读全文
posted @ 2019-04-10 14:54 recall_lonely 阅读(1699) 评论(0) 推荐(0) 编辑