Category: 招数学习

ServerStatus 感觉不错, 记录一下配置过程

最近服务器有点多, 于是打算搞个探针监控一下, hostloc上看到ServerStatus的讨论比较多, 那就选它了! 安装有2种方法, 由于已经先安装了宝塔, 就选择手动安装了. 跟着教程来【克隆代码】: git clone h...

Centos7 防火墙管理

查看状态 firewall-cmd --state 关闭防火墙: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 Centos 7 firewall 命令: 查看已经开放...

electerm 设置同步

electerm 同步配置项 创建 gist id,参考官方链接教程:secret gist id 创建 token,参考官方链接教程:github personal access token electerm Setting sync 登录 github,打开网址 https://gist.gi...

Ubuntu 开放指定端口

一般情况下,ubuntu安装好的时候,iptables会被安装上,如果没有的话先安装 sudo apt-get install iptables 添加开放端口 # sudo iptables -I INPUT -p tcp --dport [端口号] -j ACCEPT sudo iptable...

甲骨文使用ssh登陆 - FinalShell

文本编辑器打开,把第一行 -----BEGIN PRIVATE KEY----- 改成 -----BEGIN RSA PRIVATE KEY----- 最后一行 -----END PRIVATE KEY----- 改成 -----END RSA PRIVATE KEY----- 就可导入 FinalShell 了

table css样式

<head> <title></title> <style type="text/css"> table { border-collapse: collapse; margin: 0 auto; text-align: center; } table td, table th { border: 1p...

CentOS 7安装TCP BBR

  TCP BBR(Bottleneck Bandwidth and Round-trip propagation time)是由Google设计,于2016年发布的拥塞算法。以往大部分拥塞算法是基于丢包来作为降低传输速率的信号,而BBR则基于模型主动探测...

node, npm 升级

# 先安装模块n npm install n -g # 将 node 升级到最新稳定版 n stable # 将 npm 升级到最新版 npm install npm -g # 如果要指定版本,可以通过@指定版本 # npm install [email protected] -g

WordPress主题模板文件的引入方法

get_template_part() 用来引用模板文件,类似于 get_header()、get_sidebar() 和 get_footer(),只不过这个 get_template_part() 可以引入自定义名字的文件。 使用方法: get_template_part( $slug, $...