随笔分类 -  Linux

摘要:服务器操作系统比较老,是centos6.5 openssl的版本也很老 升级ssh提示需要先升级openssl 操作步骤: 1、修改镜像源为阿里云的镜像源; 2、setenforce 0,备份openssl,下载openssl-1.1.1w.tar.gz,升级openssl; 3、升级ssh,修改配 阅读全文
posted @ 2024-11-25 23:08 day959 阅读(5) 评论(0) 推荐(0) 编辑
摘要:参考资料:https://www.jianshu.com/p/4a1a5e45b0d4 阅读全文
posted @ 2024-11-25 21:49 day959 阅读(8) 评论(0) 推荐(0) 编辑
摘要:服务器无法访问外网,采用离线安装的方式安装lnmp 之前尝试了很多次,nginx和mysql都安装成功了,php一直安装不成功 今天排查报错信息,用yum install libicu-devel命令安装libicu,提示安装不成功,查了一下本地源,发现有对应的rpm包,但是yum命令找不到。 之前 阅读全文
posted @ 2023-05-10 19:05 day959 阅读(258) 评论(0) 推荐(0) 编辑
摘要:一、备份/etc/yum.repos.d/; 二、把/etc/yum.repos.d/CentOS-Base.repo替换为以下内容: # CentOS-Base.repo## The mirror system uses the connecting IP address of the clien 阅读全文
posted @ 2022-09-17 12:42 day959 阅读(195) 评论(0) 推荐(0) 编辑
摘要:参考资料: https://blog.csdn.net/eagle89/article/details/118928916 https://www.yidc.net/archives/5755 http://t.zoukankan.com/kainhuck-p-12047671.html 阅读全文
posted @ 2022-06-15 21:28 day959 阅读(183) 评论(0) 推荐(0) 编辑
摘要:unzip默认只能解压4G以下的zip压缩包 超过4G的可以用7-Zip forLinux版本的的p7zip解压 第一步:安装p7zip 从官网下载最新的安装包https://sourceforge.net/projects/p7zip/files/p7zip/16.02/,我安装的是p7zip_1 阅读全文
posted @ 2022-04-07 11:36 day959 阅读(365) 评论(0) 推荐(0) 编辑
摘要:scp -r 文件名/目录名 root@192.168.2.144:/home/hsw 阅读全文
posted @ 2022-01-13 14:14 day959 阅读(65) 评论(0) 推荐(0) 编辑
摘要:1、安装ffmpeg时需要提前安装yasm插件; (1)wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz (2)tar -xvf yasm-1.3.0.tar.gz (3)cd yasm-1.3.0/ (4)./ 阅读全文
posted @ 2021-12-02 16:55 day959 阅读(527) 评论(0) 推荐(0) 编辑
摘要:mysql升级到5.7.31后,访问系统报错; 解决办法: 修改/etc/my.cnf 文件底部追加: [mysqld] sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_A 阅读全文
posted @ 2021-11-02 15:27 day959 阅读(862) 评论(0) 推荐(0) 编辑
摘要:1、确定/etc/yum.repos.d/下镜像源是否正确 (1)CentOS-Base.repo改成阿里云的vault源 (2)epel源如果不正确就删除 yum clean all && yum makecache 2、安装libicu-devel,执行命令yum install libicu- 阅读全文
posted @ 2021-10-31 03:08 day959 阅读(63) 评论(0) 推荐(0) 编辑
摘要:参考资料:https://www.sohu.com/a/329976109_354899 阅读全文
posted @ 2021-10-28 15:56 day959 阅读(316) 评论(0) 推荐(0) 编辑
摘要:systemctl status firewalld systemctl start firewalld systemctl stop firewalld systemctl restart firewalld 之前遇到设置firewalld防火墙不生效,直接编辑centos7的iptables v 阅读全文
posted @ 2021-06-11 10:34 day959 阅读(551) 评论(0) 推荐(0) 编辑
摘要:一、下载FreeTDS安装包 wget -c http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz 二、解压 tar -zxvf freetds-stable.tgz 三、编译安装 cd freetds-0.91/. 阅读全文
posted @ 2021-06-05 18:19 day959 阅读(184) 评论(0) 推荐(0) 编辑
摘要:yum install libreoffice -y 如果遇到 执行命令:yum install libreoffice-headless -y ppt转pdf命令 soffice --headless --invisible --convert-to pdf 123.pptx --outdir . 阅读全文
posted @ 2020-09-23 19:04 day959 阅读(442) 评论(0) 推荐(0) 编辑
摘要:参考资料:https://www.cnblogs.com/beyang/p/10116567.html 阅读全文
posted @ 2020-08-16 17:29 day959 阅读(614) 评论(0) 推荐(0) 编辑
摘要:1、vim /etc/passwd 将第一行的第一个root替换为重命名的用户2、vim /etc/shadow 将这一行中的root 替换为重命名的用户 参考资料:https://blog.csdn.net/songyuequan/article/details/105963038 阅读全文
posted @ 2020-08-16 15:37 day959 阅读(4951) 评论(0) 推荐(0) 编辑
摘要:服务器终端 编辑/etc/pam.d/system-auth SSH远程登录 编辑/etc/pam.d/sshd 在#%PAM-1.0的下面增加一行: auth required pam_tally2.so onerr=fail deny=3 unlock_time=300 even_deny_ro 阅读全文
posted @ 2020-08-16 15:23 day959 阅读(1620) 评论(0) 推荐(0) 编辑
摘要:一、linux安装redis 1、先确认是否安装 gcc 环境(gcc -v),如果没有安装,执行以下命令进行安装 yum install -y gcc 2、下载redis,wget https://download.redis.io/releases/redis-6.2.5.tar.gz 3、解压 阅读全文
posted @ 2020-06-29 20:55 day959 阅读(156) 评论(0) 推荐(0) 编辑
摘要:1、修改nginx日志规则,加入反向代理源IP 修改nginx配置文件,在log_format中加入$http_x_forwarded_for 2、开启nginx日志 在站点配置文件中开启日志 access_log /home/wwwlogs/my.log access; 3、查询日志内容 查看某个 阅读全文
posted @ 2020-03-20 17:03 day959 阅读(1190) 评论(0) 推荐(0) 编辑
摘要:执行“fdisk -S 56 /dev/xvdb”命令,对数据盘进行分区; 根据提示,依次输入“n”,“p”“1”,两次回车,“wq”,分区就开始了,很快就会完成。 LVM逻辑卷扩容 td新分配了100G空间 查看fdisk -l,如图: 发现是在原有的/dev/vda上进行的扩容 于是执行fdis 阅读全文
posted @ 2019-12-18 13:51 day959 阅读(174) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示