
linux
sourcod
永远保持快乐
展开
-
安装git服务,创建git仓库
linux安装git服务 sudo apt-get install git创建git用户 sudo adduser git创建证书登录 把id_rsa.pub公钥文件导入到authorized_keys文件里初始化git仓库 sudo git init --bare sample.git不允许用户修改工作区 sudo chown -R git:git sample.git禁...转载 2018-07-03 14:52:11 · 227 阅读 · 0 评论 -
My favorite linux tools
请访问我的个人博客 sourcodiptux 局域网传输 飞鸽Thunderbird 邮件客户端 ThunderbirdsambaSamba - opening windows to a wider world 局域网共享 firefox 浏览器xmind 思维导图fcitx 输入法mplayer 播放器Nutstore 坚果云rdesktop 远程...转载 2018-07-06 12:19:55 · 281 阅读 · 0 评论 -
mac os 下idea 插入数据库乱码
请访问我的个人博客 sourcod今天做一个报表怎么查询都查询不到,后来经过调试发现是中文查询不到,上网上找了很多文章都没搞定。后来看到我的项目中mysql下的配置文件url是jdbc:mysql://192.168.1.13:3306/hitu_shop?useUnicode=true&characterEncoding=UTF-8发现有个 useUnic...转载 2018-07-06 12:16:06 · 464 阅读 · 0 评论 -
linux 常用命令
请访问我的个人博客 sourcod系统信息arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 hdparm -tT /dev/sd...转载 2018-07-06 12:14:56 · 195 阅读 · 0 评论 -
linux 安装 virtualbox
请访问我的个人博客 sourcod我是使用debian系统 sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox出现“Failed to open a session for the virtual machine windows7. VT-x is being used...转载 2018-07-06 12:14:02 · 970 阅读 · 0 评论 -
install debian gnome chinese-fonts
请访问我的个人博客 sourcod首先获得一套字体库(Google一下一大把,或者在windows下复制一份”c://windows/fonts”)。在/usr/share/fonts目录下建立一个子目录,例如win,命令如下: sudo mkdir /usr/share/fonts/win将字体文件复制到该目录下,使用命令: 先挂载u盘 mount /dev/sdb1 /...转载 2018-07-06 12:10:10 · 752 阅读 · 0 评论 -
emacs集成七牛云存储
请访问我的个人博客 sourcod安装七牛云qshell命令行工具下载 wget 'http://devtools.qiniu.com/qshell-v1.8.1.zip'解压文件 unzip qshell-v1.8.1.zip找到对应操作系统版本文件,复制到~/opt/qshell文件夹下配置七牛密钥 上七牛云网站创建一个密钥执行命令 qshell account...转载 2018-07-04 12:21:11 · 207 阅读 · 0 评论 -
debian8 安装 svn
请访问我的个人博客 sourcod安装 apr安装 apr-util由于我电脑之前安装过httpd,所以以上两步略过! 参照: debian install httpd service 3. 安装 openssl CFLAGS=-fPIC ./config --prefix=/usr/local/openssl enable-shared 4. 安装 sco...转载 2018-07-04 12:19:48 · 549 阅读 · 0 评论 -
debian8 安装 php
请访问我的个人博客 sourcod下载php7 wget http://jp2.php.net/distributions/php-7.1.2.tar.gz解压 tar -zxvf php-7.1.2.tar.gz进入目录./confirure 报错 我们安装libxml2&libxml2-dev sudo apt-get install libxml2 l...转载 2018-07-04 12:18:30 · 1380 阅读 · 0 评论 -
debian8 安装&配置 zsh
请访问我的个人博客 sourcod安装zshsudo apt-get install zsh安装oh-my-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 安装完会出现如下界面 修改配置 配置文件是~/.z...转载 2018-07-04 12:17:33 · 3282 阅读 · 0 评论 -
debian install httpd service
请访问我的个人博客 sourcod安装httpd 2.2cd ~/opt/apache/httpd/httpd2.2.31./configure --prefix=/usr/local/httpd2.2.31sudo make sudo make install安装httpd 2.4 下载apr和apr-util Download - The Apache ...转载 2018-07-04 12:16:35 · 1547 阅读 · 0 评论 -
让org2blog支持中文
请访问我的个人博客 sourcod因为wordpress不支持non-ascii,所以org2blog不能发布带中文的文章为了解决这个问题找了很长时间,现把解决方法分享出来。 原文网址:org2blog转ascii 一个日本网站把下面代码粘到org2blog配置文件下面(advice-add 'url-http-create-request :ove...转载 2018-07-04 12:07:23 · 304 阅读 · 0 评论 -
破解工具
请访问我的个人博客 sourcodlinux 破解工具 先用nmap扫描目标端口 sudo nmap -O 123.123.123.123使用crunch和社工生成密码字典 crunch 6 8 asdfqwer -c 6000 -o START使用hydra破解密码 sudo hydra -l root -p ../test.txt -t 3 -o save.log -...转载 2018-07-04 12:07:38 · 152 阅读 · 0 评论 -
好用的linux工具
请访问我的个人博客 sourcodmutt 邮件客户端htop 进程查看mplayerNutstorerdesktoplatexhttpie转载 2018-07-03 16:00:30 · 337 阅读 · 0 评论 -
搭建owncloud私有网盘
请访问我的个人博客: sourcod安装 owncloud下载 owncloud wget "https://download.owncloud.org/community/owncloud-9.1.3.zip"解压 unzip owncloud-9.1.3.zip -d owncloud配置 nginx vi /usr/local/nginx/conf/nginx.conf ...转载 2018-07-03 15:01:55 · 1298 阅读 · 0 评论 -
搭建debian服务器
配置sudosu -chmod -w /etc/sudoersvi /etc/sudoers添加一行willeam ALL=(ALL:ALL) ALL添加163源上网查找对应版本的数据源sudo vi /etc/apt/sources.list把找到的源添加到文件后sudo apt-get update 更新源安装输入法sudo apt-get i...转载 2018-07-03 14:58:56 · 2565 阅读 · 0 评论 -
配置ubuntu 18 bonding 多网卡负载均衡
配置ubuntu 18 bonding最近买了一台dell R510 二手服务器。发现后面有两个网口,只插一个有点浪费于是乎各种百度,Google。 终于让我找到了一个名词 “多网卡负载均衡” Linux双网卡绑定实现就是使用两块网卡虚拟成为一块网卡,通俗点讲就是两块网卡具有相同的IP地址而并行链接聚合成一个逻辑链路工作。操作步骤:查看有没有bonding kernel ...转载 2018-09-13 11:54:01 · 7268 阅读 · 3 评论