![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
linux
草木_85
对生活充满希望
对朋友知无不言,言无不尽
展开
-
linux修改系统时间
https://www.cnblogs.com/suiyueshentou/p/7798340.html 服务器时间与网络时间不符: 一、手动修改 date命令:查看当前时间 date -s 时分秒 :修改时间 还需要把日期改过来 date -s 完整日期时间(YYYY-MM-DD hh:mm[:ss]):修改日期、时间 时间要用双引号括起来,否则报错 手动修改会存在一定的时间误差 hwclock -w 将时间写入bios避免重启失效。 当我们进行完 Linux 时间的校时后,还需要转载 2020-06-28 11:54:22 · 225 阅读 · 0 评论 -
linux调优
1. /etc/security/limits.conf 增加如下配置 root soft nofile 655350 root hard nofile 655350 root soft nproc 655350 root hard nproc 655350 * soft nofile 655350 * hard nofile 655350 * soft nproc 655350 * hard nproc 655350 2.内核参数调整如下: net.ipv4.tcp_max_tw_buckets = 5.原创 2020-05-09 17:22:37 · 207 阅读 · 0 评论 -
centos7 firewall指定IP与端口访问
1、启动防火墙 systemctlstart firewalld.service 2、指定IP与端口 firewall-cmd--permanent--add-rich-rule="rule family="ipv4" source address="192.168.142.166" port protocol="tcp" port="5432" accept" 3、重新载入,使配置生效 systemctl restart firewalld.service 4、查看配置结果 firew...转载 2020-05-09 11:23:18 · 201 阅读 · 0 评论 -
Linux下查看MySQL的安装路径
Linux下查看mysql、apache是否安装,并卸载。 指令 ps -ef|grep mysql 得出结果 root17659102011?00:00:00/bin/sh/usr/bin/mysqld_safe--datadir=/var/lib/mysql--socket=/var/lib/mysql/mysql.sock--log-error=/var/log/mysqld.log--pid-file=/var/run/mysqld/my...转载 2020-05-09 10:14:29 · 239 阅读 · 0 评论