semantic-ui 下拉菜单初始化
学习django时发现如下的代码下拉框在鼠标没有移动到选项前就消失了,好像是和上一层的text属性冲突,去掉text属性就可以正常使用下拉菜单,但是样式不好看。
1 | <div class="ui container nav"> |
于是搜索参考文档如下
https://semantic-ui.qyears.com/modules/dropdown.php#/usage
学习django时发现如下的代码下拉框在鼠标没有移动到选项前就消失了,好像是和上一层的text属性冲突,去掉text属性就可以正常使用下拉菜单,但是样式不好看。
1 | <div class="ui container nav"> |
于是搜索参考文档如下
https://semantic-ui.qyears.com/modules/dropdown.php#/usage
参考网址:https://www.jianshu.com/p/49059f2c4234
安装后进入系统 ip addr 发现ens33没有分配IP
1 | cd /etc/sysconfig/ |
3 参考网页 https://github.com/yobabyshark/wireguard/blob/master/wireguard_install.sh
安装,配置 iptables
1 | yum install -y iptables-services |
突然想起看看服务器的日志,于是去网上搜索,last
ps -ef
iftop -np
也没看出什么来,不过du -h /var/log/secure 一看20多M,终于明白自己是多么的井蛙了,于是便想要更改ssh的端口。
参考网址
https://www.centos.bz/2017/08/centos-7-change-ssh-port/
1 | $ vi /etc/ssh/sshd_config |
本来以为很简单的折腾很久,记录一下备忘。
参考网址
http://desert3.iteye.com/blog/1685734 配置说明
https://www.centos.bz/2017/08/centos-7-virtual-user-vsftpd/ 安装教程
https://www.chengzi520.com/?p=697 问题排查
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
szerotier主要是用在公司没有公网IP,但是仓库那边有一个同事需要连接到这边的一个文件服务器,总是麻烦同事用QQ或者微信传。没有公网IP,一般的vpn无法搭建,蒲公英路由器或者蒲公英好像有个这样可以异地组网的,不过试用了一下很久没有连起来。于是…
先去 http://www.zerotier.com/download.shtml 注册一个免费的账号,免费账号可以互联100台机器,应该够用了,然后下载对应的版本进行安装:
centos7 直接用官网的命令安装
1 | curl -s 'https://pgp.mit.edu/pks/lookup?op=get&search=0x1657198823E52A61' | gpg --import && \ |