作为爱机的主人,咱们得嘘寒问暖是不是?下面介绍Linux下查看CPU温度的方法.
CentOS系列:
1.yum install lm_sensors;
2.sensors-detect
3.sensors
Ubuntu系列:
1.apt-get install lm-sensors
2.sensors-detect
3.service kmod start
4.sensors 浏览全部
作为爱机的主人,咱们得嘘寒问暖是不是?下面介绍Linux下查看CPU温度的方法.
CentOS系列:
1.yum install lm_sensors;
2.sensors-detect
3.sensors
Ubuntu系列:
1.apt-get install lm-sensors
2.sensors-detect
3.service kmod start
4.sensors 浏览全部
debian7 deb http://mirrors.aliyun.com/dotdeb wheezy all deb-src http://mirrors.aliyun.com/dotdeb wheezy all debian7 指定php版本 php54 deb http://mirrors.aliyun.com/dotdeb wheezy-php54 all deb-src http://mirrors.aliyun.com/dotdeb wheezy-php54 all debian7 指定php55 deb http://mirrors.aliyun.com/dotdeb wheezy-php55 all deb-src http://mirrors.aliyun.com/dotdeb wheezy-php55 all debian7 指定php56 deb http://mirrors.aliyun.com/dotdeb wheezy-php56 all deb-src http://mirrors.aliyun.com/dotdeb wheezy-php56 all debian7 指定php56-zts deb http://mirrors.aliyun.com/dotdeb wheezy-php56-zts all deb-src http://mirrors.aliyun.com/dotdeb wheezy-php56-zts all debian8 deb http://mirrors.aliyun.com/dotdeb jessie all deb-src http://mirrors.aliyun.com/dotdeb jessie all
/usr/local/php/bin/phpize #写全phpize的路径 ./configure --with-php-config=/usr/local/php/bin/php-config #配置时 要将php-config的路径附上 make && make install
1、phpize要写对路径
2、多个不同版本共存时,一定要带上 –with-php-config=/usr/local/php/bin/php-config 的详细路径,否则会以默认版本的参数进行编译
1、前身是大名鼎鼎的OPENSER, 由于本人工作的需要, 对口的服务器端公司开发进度明显低于我们客户端,所以无奈使用这个玩意做测试,结果测试下来出奇的满意, 这个服务器端已经基本可以实现所有SIP可以完成的功能,视频童话,电话会议,TLS安全SIP,都不是问题.最实用的是他打包了一个约700MB的虚拟机文件,不用自己编译安装,直接用虚拟机就能开始测试你自己的客户端.
链接: opensips.org
2、Asterisk
服务器使用实例:
vim /etc/logrotate.d/tomcat
写入一下内容
/home/tomcat*/logs/catalina.out {
rotate 7
daily
copytruncate
compress
notifempty
missingok
}
保存,然后执行
/usr/sbin/logrotate -f /etc/logrotate.conf
该命令执行后,应该是作为进程一直在运行,重启服务器可能需要再次执行 浏览全部
BBR安装脚本
wget https://raw.githubusercontent.com/kuoruan/shell-scripts/master/ovz-bbr/ovz-bbr-installer.sh chmod +x ovz-bbr-installer.sh ./ovz-bbr-installer.sh
安装过程中,会提示加速端口(可以更改)
判断BBR是否正常工作
控制bbr
systemctl {start|stop|restart|status} haproxy-lkl
配置bbr加速端口
vim /usr/local/haproxy-lkl/etc/port-rules
一行一个端口,可写范围
卸载BBR
./ovz-bbr-installer.sh uninstall
SSLProxyEngine on SSLProxyVerify none SSLProxyCheckPeerCN off SSLProxyCheckPeerName off SSLProxyCheckPeerExpire off
首先要安装nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs
There are some NPM native modules like node-native-keymap that didn’t work when I built the first time, so you’ll need some supporting libraries first:
sudo apt-get install libx11-dev
安装yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - sudo echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn
切换国内源
npm config set registry=https://registry.npm.taobao.org yarn config set registry https://registry.npm.taobao.org 下载cnpm:npm install -g cnpm –registry=https://registry.npm.taobao.org
Then, from my Raspberry Pi, I did this to build my own instance of VS Code.
git clone https://github.com/microsoft/vscode cd vscode ./scripts/npm.sh install --arch=armhf
This took the Raspberry Pi 3 about 20 minutes so be patient.
Then, run your instance with ./scripts/code.sh from that same folder.
最后分享几个相关话题的链接:
1、源包下载地址:
https://packagecloud.io/headmelted/codebuilds
2、国外大佬手动编译教程:
http://www.hanselman.com/blog/BuildingVisualStudioCodeOnARaspberryPi3.aspx