linux
文章平均质量分 77
MaJson
这个作者很懒,什么都没留下…
展开
-
Linux 设置定时任务crontab命令
Linux 设置定时任务crontab命令原创 2017-07-23 16:12:32 · 469 阅读 · 0 评论 -
要求:centos 7+ 搭建LNMP
服务器要求:centos 7+数据库链接不上可能原因 a、关闭防火墙:service firewalld stop b、阿里云的安全部3306端口是否开放1、安装nginx先安装nginx的yum源 rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0....原创 2018-01-30 17:35:47 · 238 阅读 · 0 评论 -
秒解Sed和Awk的秘密
数据的搜寻并替换 sed ‘s/要被取代的字串/新的字串/g’先观察原始信息,利用 /sbin/ifconfig 查询 IP 获取命令ifconfig eth0 | sed -n '/inet /p' | sed 's/inet.*r://' | sed 's/B.*$//'sed高级操作命令(1) {}:多个sed命令,用;分开实例操作nl pass...原创 2018-05-07 22:28:37 · 158 阅读 · 0 评论 -
CentOS 6.4下编译安装MySQL 5.6.14
CentOS 6.4下编译安装MySQL 5.6.16原创 2017-02-15 14:12:31 · 347 阅读 · 0 评论 -
LNMP一键安装shell脚本
配置mysql设置mysql账户密码 /usr/local/mysql/bin/mysqladmin -u root password ‘new-password’MySql实现远程连接,用户grant授权 grant all privileges on . to root@’%’ identified by “your_password” with grant opti...原创 2018-05-23 14:43:27 · 1872 阅读 · 0 评论 -
php+swoole+linux进行系统监控和性能优化
服务器监控端口监控class Server { const PORT = 8811; /** * 获取端口指定端口信息;如果在运行返回1;否则返回0; */ public function port() { $shell = "netstat -anp 2>/dev/null | grep &a原创 2018-07-26 13:10:02 · 1047 阅读 · 0 评论