文章分类 -  linux

linux
摘要:一键脚本(仅CentOS): wget "https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh" && chmod +x ok_bbrplus_centos.sh && ./ok_bbrplus_centos.sh 安装后 阅读全文
posted @ 2023-02-01 13:17 haiwei.sun 阅读(32) 评论(0) 推荐(0)
摘要:https://blog.liuguofeng.com/p/4630 服务端开启 WebSocket,使用 WorkerMan + phpSocket.io 开启的端口为 2120,访问为 ws://wanaioa.unetu.net:2120/ 由于微信小程序只能使用 443 端口,需将域名的 4 阅读全文
posted @ 2019-02-21 10:50 haiwei.sun 阅读(10812) 评论(0) 推荐(0)
摘要:brew install -vd --use-wmf --use-exr --with-quantum-depth-8 --enable-hdri --use-lqr --use-rsvg --with-magick-plus-plus imagemagickbrew reinstall image 阅读全文
posted @ 2018-11-13 10:11 haiwei.sun 阅读(708) 评论(2) 推荐(0)
摘要:https://blog.csdn.net/snow_small/article/details/79173575 1、安装ImageMagic [root@localhost download]# wget http://www.imagemagick.org/download/ImageMagi 阅读全文
posted @ 2018-11-13 09:42 haiwei.sun 阅读(2391) 评论(1) 推荐(0)
摘要:判断是否安装: crontab 安装: yum -y install vixie-cron yum -y install crontabs 启动: systemctl start crond.service 关闭: systemctl stop crond.service 重启: systemctl 阅读全文
posted @ 2017-08-25 18:27 haiwei.sun 阅读(4111) 评论(0) 推荐(0)
摘要:/sbin/iptables -I INPUT -p tcp --dport 3690 -j ACCEPT /etc/rc.d/init.d/iptables save /etc/rc.d/init.d/iptables restart 阅读全文
posted @ 2017-05-03 10:15 haiwei.sun 阅读(229) 评论(0) 推荐(0)
摘要:http://www.centoscn.com/image-text/install/2015/0703/5775.html软件环境: VitrualBox CentOS 6.4 NodeJS v0.12.5 安装过程: Step 1、确认服务器有nodejs编译及依赖相关软件,如果没有可通过运行以 阅读全文
posted @ 2017-04-06 13:16 haiwei.sun 阅读(906) 评论(0) 推荐(1)
摘要:ps -ef | grep mysql 阅读全文
posted @ 2017-04-06 10:27 haiwei.sun 阅读(88) 评论(0) 推荐(0)
摘要:nohup /usr/bin/node DemoServer.js >/dev/null 2>&1 & 先说一下Linux重定向: 0、1和2分别表示标准输入、标准输出和标准错误信息输出,可以用来指定需要重定向的标准输入或输出。在一般使用时,默认的是标准输出,既1.当我们需要特殊用途时,可以使用其他 阅读全文
posted @ 2017-03-01 09:31 haiwei.sun 阅读(212) 评论(0) 推荐(0)
摘要:1104 yum install -y gcc-c++ make 1105 curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash - 1106 yum install nodejs 1107 node -v 1108 whereis 阅读全文
posted @ 2017-02-27 17:12 haiwei.sun 阅读(152) 评论(0) 推荐(0)
摘要:server { ... location / { index index.htm index.html index.php; #访问路径的文件不存在则重写URL转交给ThinkPHP处理 if (!-e $request_filename) { rewrite ^/(.*)$ /ind... 阅读全文
posted @ 2017-02-23 16:27 haiwei.sun 阅读(148) 评论(1) 推荐(0)
摘要:#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT 然后保存: #/etc/rc.d/init.d/iptables save 再查看是否已 阅读全文
posted @ 2017-02-23 08:26 haiwei.sun 阅读(293) 评论(0) 推荐(0)
摘要:Linux crontab 命令介绍http://www.cnblogs.com/OtisBlog/archive/2012/01/30/2332175.html语法介绍使用权限: root用户和crontab文件的所有者crontab格式语法:crontab [-e [UserName]|-l [... 阅读全文
posted @ 2014-07-05 17:02 haiwei.sun 阅读(262) 评论(0) 推荐(0)
摘要:1、开源HA软件Heartbeat的介绍 它提供了所有HA软件需要的基本功能,比如心跳检测和资源接管,检测集群中的系统服务,在集群的节点间转移共享IP地址的所有者等。 1.1 安装heartbeat 同时还需要安装一个libnet工具包。libnet是一个高层次的API工具,可以从http://so 阅读全文
posted @ 2013-08-25 11:28 haiwei.sun 阅读(512) 评论(0) 推荐(0)
摘要:1、LVS集群的组成与特点Linux虚拟服务器(Linux virtual Server,LVS),是一个由张文高开发的一款自由软件。利用LVS可以实现高可用的、可伸缩的Web、mail、Cache和Media等网络服务。LVS具有很好的可伸缩性、可靠性和可管理性,通过LVS要实现的最终目标是:利用Linux操作系统和LVS集群软件实现一个高可用、高性能、低成本的服务器应用集群。1.1 LVS集群的组成利用LVS构设的服务器集群系统由3个部分组成:最前端的是负载均衡层(这里用Load Balancer表示),中间是服务器群组层(用Server Array表示),低端是数据共享存储层(用Shar 阅读全文
posted @ 2013-08-25 11:08 haiwei.sun 阅读(230) 评论(0) 推荐(0)
摘要:* */5 * * * root php /home/anyrewy/test.php 阅读全文
posted @ 2013-08-24 11:54 haiwei.sun 阅读(138) 评论(0) 推荐(0)
摘要:/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=noneHWADDR=00:14:22:1B:70:FAONBOOT=yesNETMASK=255.255.255.192IPADDR=203.93.236.145GATEWAY=203.93.236.129TYPE=Ethernet/etc/init.d/network restart首先,我们用命令检测其是否生效,可用netstat -rn 或 route -n 命令,注意带有UG标识的这一行,它表示192.168.4.3 为机器的网关地址。traceroute 查看 阅读全文
posted @ 2013-08-24 11:47 haiwei.sun 阅读(620) 评论(0) 推荐(0)
摘要:进入防火墙界面命令: system-config-securitylevel配置完成后我们可以用命令查看一下,正确关闭iptables和SELinux时应显示如下内容:#iptables -nv -L................................................#getenforceDisabled如果是用命令行:service iptables stopchkconfig iptables off要关闭SELinux,可使用以下命令行临时关闭之。SELinux由开启状态转为关闭状态后,最好是重启一下服务器。setenforce 0 阅读全文
posted @ 2013-08-24 11:29 haiwei.sun 阅读(145) 评论(0) 推荐(0)
摘要:1、在开机启动的时候按空格键能看到CentOS目录,用上下键选中你要进入的那个内核,选中后按键盘上的E键。2、继续按E键选择内核3、在信息的最后加空格,然后输入single 或 S,或者直接输入数字1并回车4、然后可以按B键启动系统5、进入的单用户界面后,在这个界面中的#后输入 passwd root,重新设置root密码,然后在确认输入一遍,即重设了root密码。进入Centos单用户模式后,我们可以输入reboot重启计算机,此时的root密码就被更新了。另外,需要说一下,如果我们维护的系统是FreeBSD的话,很多时候系统管理员们可能会忘记root密码,但由于大家都已经对在其下用普通用户 阅读全文
posted @ 2013-08-24 11:11 haiwei.sun 阅读(183) 评论(0) 推荐(0)
摘要:1、ps进程查看命令。格式: ps [选项]其主要选项如下:-a: 显示系统中所有进程的信息-e:显示所有进程的信息-f:显示进程的所有信息-l:以长格式显示进程信息-r:只显示正在运行的进程-u:显示面向用户的格式-x:显示所有非控制终端上的进程信息-p:显示由进程ID指定的进程信息-t:显示指定终端上的进程信息。使用ps -aux命令可以获得终端上所有用户的有关进程的所有信息,这也是平时用的最多的命令之一。由于ps执行后结果太多了,所以我们一般会带上grep参数来精确定位我们需要的进程号。ps axu | grep -v grep | grep nginx2、toptop命令可以动态显示服 阅读全文
posted @ 2013-08-18 15:36 haiwei.sun 阅读(881) 评论(0) 推荐(0)

返回顶部