是岁大疫,免者十不足一。。。
  • 微信微信

安装带ssl及stream的nginx指令教程

安装带ssl及stream的nginx指令教程
下载安装包 wget https://nginx.org/download/nginx-1.18.0.tar.gz wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz 安装依赖包,在线安装的,如果需要离线安装则根据操作系统内核下载相应的rpm,安装c++就会烦到飞起的,还有openssl也是依赖一大堆 yum install gcc-c++ # yum install -y pcre pcre-devel  #这个编译安装...

MySQL安装出错:--initialize specified but the data directory has files in it. Aborting.

MySQL安装出错:--initialize specified but the data directory has files in it. Aborting.
windows系统上安装mysql,输入初始化指令: mysqld --initialize --user=mysql --console 报错: --initialize specified but the data directory has files in it. Aborting. 清空data文件夹内容或者直接删了data文件夹,再次输入指令即可解决。

记黑客入侵和挖矿恶意程序的处理

记黑客入侵和挖矿恶意程序的处理
        今天早上接到服务器邮件警报,存在异常登陆,不太关注,心想服务器端口不是默认的22,密码也很复杂,应该不会那么容易攻破进来的吧。。。              过了大概半个钟,又收到邮件警报,存在木马!!!!真的有贼!这就不得不处理啦!...

《长安十二时辰》观感

《长安十二时辰》观感
        终于看完长安12时辰了。一天的故事能拍成48集,让我看了一周多也是服了。每集开头用日冕报时预示剧情,也是一大特色。         总的来说,确实良心剧,服饰道具对白等制作很好,各路人物性格迥异形象鲜活,打斗和悬念故事情节都不错。片方...

CssSyntaxError:Unknown word / DeprecationWarning: Unhandled promise rejections are deprecated

CssSyntaxError:Unknown word / DeprecationWarning: Unhandled promise rejections are deprecated
        昨天项目用npm打包遇到问题,报UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): CssSyntaxError:  Unknown word         npm run dev是正常的,真是奇怪。百度查到以下解法,webpack还是要深入学习啊

vuejs2.0的双向绑定

vuejs2.0的双向绑定
直接上代码,如下: <!DOCTYPE html> <html> <head> <title>vue-test</title> </head> <body> <div id="app"> <span>title:</span><span v-text="text"></span><br> <span>Price:¥ </span><span v-text="price"></span><br> <span>Total:¥ </span><span v-text="tot...

注册github,放了一个测试

注册github,放了一个测试
今天注册了下github,放一个算法题的自己的解答上去,算原创吧。 算法感觉薄弱了不少,有空要学习总结下 https://github.com/astromessenger/algorithm <script type="text/javascript"> var data = [ { parentId: 0, id: 1, value: '1' }, { parentId: 3, id: 2, value: '2' }, { parentId: 0, id: 3, value: '3' }, { parentId: 1, id: ...

前天遇到挖矿病毒,今天遇到阿里云域名不解析,流年有点不顺啊

前天遇到挖矿病毒,今天遇到阿里云域名不解析,流年有点不顺啊
       前天发现很久没有使用的三台云服务器很慢,查了下CPU很高,之前搭的hadoop也不用使用了,crontab还出现了一个每30秒执行一次的任务,跑一个远程的starts.jpg,下载这个jpg下来,发现是一个shell脚本!         百度下,这是挖矿程序。。。。    ...

main.js中未注册store导致出现:[Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"

main.js中未注册store导致出现:[Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"
        今天将emit/on方式传值修改为使用vuex,改完后发现个问题:[Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"         查了下,原来是在main.js中写少了注册store         

TP3.2构造函数出错:Call to a member function assign() on null

TP3.2构造函数出错:Call to a member function assign() on null
今天在TP3.2里面改造了一个函数,使用到构造函数,直接使用了PHP原生的__construct(),结果直接报错: 查了下,原因是我在Action有继承,子类的__construct()覆盖了父类的,所以报错了。 TP里面有_initialize()这个自己封装的方法,和php自带的__construct()方法是差不多一样的,但是有一点区别,_initialize() 会帮...