在nodejs安装之前先设置权限:npm config set user 0npm config set unsafe-perm truenpm install顺便写一下GitLab Runner在CentOS7中的安装方法:curl -L https://packages.gitlab.com/install/repositories……Continue reading » Jason 7 years ago (2019-05-21) 1350Views 1Comments0个赞
apt-get install alien -ywget --user=hetzner --password=download http://download.hetzner.de/tools/LSI/tools/MegaCLI/8.07.14_MegaCLI.zipunzip 8.07.14_MegaCLI.zip -d megaclicd m……Continue reading » Jason 7 years ago (2019-05-15) 1312Views 0Comments0个赞
Dell服务器使用omreport查看硬件信息一.命令指南123456789omreport chassis # 显示所有主要组件的常规状态 omreport chassis memory # 显示内存信息omreport chassis t……Continue reading » Jason 7 years ago (2019-05-15) 1657Views 0Comments0个赞
4月22日消息,哔哩哔哩(B站)整个网站后台工程源码泄露,并且“不少用户名密码被硬编码在代码里面,谁都可以用。”在GitHub上以“openbilibili”为用户创建的“go-common”代码库:https://github.com/openbilibili/go-common短短 5 个小时时间内,star 数已经达到 700+。然而该项目并不是……Continue reading » Jason 7 years ago (2019-04-22) 1770Views 1Comments0个赞
一行代码搞定,如果需要手动确认的话把-y参数去掉yum history list|awk '$1 ~ /[0-9]+/ {print $1}'| while read a; do yum history undo -y $a; done……Continue reading » Jason 7 years ago (2019-04-16) 1159Views 0Comments0个赞
查看运行容器docker ps查看所有容器docker ps -a进入容器其中字符串为容器ID:docker exec -it d27bd3008ad9 /bin/bash删除所有服务:docker service rm $(docker service ls)停用全部运行中的容器:docker stop $(docker ps -q)……Continue reading » Jason 7 years ago (2019-04-16) 1830Views 0Comments0个赞
假如你有一个大数据库需要上传到服务器中进行分析,同时这个文件也是您从网上下载下来的,那么远程下载是最好的选择,不仅省去了中间环节,而且服务器100M每秒的大带宽会让你10秒内下载完1G的文件(理论最高速)。远程下载原理:你在服务器控制界面提交下载请求,服务器根据请求直接从网上下载文件。省去了你自己从源网站下载再上传到服务器的中间环节。操作步骤:1. 进……Continue reading » Jason 7 years ago (2019-04-14) 1271Views 0Comments0个赞
1. 系统自动清理在Centos 7下,系统使用systemd管理易变与临时文件,/tmp目录的清理规则主要取决于/usr/lib/tmpfiles.d/tmp.conf文件的设定,默认的配置内容为:# This file is part of systemd.## systemd is free software; you can redist……Continue reading » Jason 7 years ago (2019-04-12) 1315Views 0Comments0个赞
为了做R语言云计算服务,需要给服务器安装所有的R包,这样一来用户就不用担心安装和编译各种包的时候出现问题了。打个小广告:一个月仅15元的R语言云计算服务首先更新系统:yum update -y添加jag repovi /etc/yum.repos.d/jags.repo#写入[home_cornell_vrdc]name=Sundry pac……Continue reading » Jason 7 years ago (2019-04-11) 2020Views 2Comments62个赞
变量可归结为类别(名义型),有序型,连续型变量(区间变量)。类别变量和有序类别(有序型)变量在R中称为因子(factor)。区间变量取连续的数值,可以进行求和、平均等运算。名义变量和有序变量取离散值,可以用数值代表也可以 是字符型值,其具体数值没有加减乘除的意义,不能用来计算而只能用来分类或者计数。名 义变量比如性别、省份、职业,有序变量比如班级名次。函数f……Continue reading » Jason 7 years ago (2019-04-09) 6287Views 0Comments6个赞