<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lanrenol的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lanrenol</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lanrenol]]></copyright><item><title><![CDATA[修改bash提示字符串]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/127397730</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/127397730</guid><author>lanrenol</author><pubDate>Tue, 18 Oct 2022 22:05:27 +0800</pubDate><description><![CDATA[缩短终端提示符的长度]]></description><category></category></item><item><title><![CDATA[ubuntu18.04部署php+thinkphp6]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/120690240</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/120690240</guid><author>lanrenol</author><pubDate>Sun, 10 Oct 2021 19:02:52 +0800</pubDate><description><![CDATA[安装环境

sudo apt-get install zip unzip

安装 mysql

sudo apt-get install mysql-server mysql-client

安装 apache2

sudo apt-get install apache2
sudo /etc/init.d/apache2 restart

安装 php7

sudo apt-cache search php7 #搜索适合的版本
sudo apt-cache search libapache2-mod-php]]></description><category></category></item><item><title><![CDATA[Ubuntu 18.04安装gitlab-14.3.2-ee]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/120675137</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/120675137</guid><author>lanrenol</author><pubDate>Sat, 09 Oct 2021 17:35:23 +0800</pubDate><description><![CDATA[1.安装并配置必要的依赖关系
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates

#接下来，安装Postfix发送通知邮件。如果您想使用其他解决方案发送电子邮件，请跳过此步骤并在安装GitLab后配置外部SMTP服务器。
sudo apt-get install -y postfix

2.添加GitLab软件包存储库并安装软件包
添加GitLab软件包存储库。

curl https://pack]]></description><category></category></item><item><title><![CDATA[apt-get卸载整理]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/120668425</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/120668425</guid><author>lanrenol</author><pubDate>Sat, 09 Oct 2021 16:20:44 +0800</pubDate><description><![CDATA[apt-get卸载整理

我们平时在安装软件后，有时会有删除，重新安装的需求，但总是删除不干净。其实，就是我们对命令的不熟悉。
一、学会查命令的文档：

apt-get --help

执行结果：
apt 1.2.32ubuntu0.2 (amd64)

Usage: apt-get [options] command

       apt-get [options] install|remove pkg1 [pkg2 ...]

       apt-get [options] source pkg1 ]]></description><category></category></item><item><title><![CDATA[Mysql从文件导入到数据库或从Redis删除key]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/105770930</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/105770930</guid><author>lanrenol</author><pubDate>Sun, 26 Apr 2020 16:03:06 +0800</pubDate><description><![CDATA[通常我们导入数据到mysql数据库，一般是直接从sql文件导入，或通过其他程序连接到数据库导入。但如果遇到有大量（百万级）数据需要导入到数据库，且非sql文件。比如说：

文本文件: ip.txt

192.168.0.1
... 
192.168.0.111
...
上百万条记录，我们可以使用LOAD DATA LOCAL INFILE方式导入数据



检查当前运行环境配置是否开启安全目录

...]]></description><category></category></item><item><title><![CDATA[git记住输入用户名密码]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/105768583</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/105768583</guid><author>lanrenol</author><pubDate>Sun, 26 Apr 2020 14:34:32 +0800</pubDate><description><![CDATA[每次提交代码都要输入用户名密码，十分麻烦，教大家怎么让Git记住密码。

执行如下命令, 会在用户主目录的.gitconfig文件中生成下面的配置:


git config --global credential.helper store

[credential]
  helper = store


如果没有–global，则在当前项目下的.git/config文件中添加。


...]]></description><category></category></item><item><title><![CDATA[在指定目录下，模糊查找包含标识的文件]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/53908943</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/53908943</guid><author>lanrenol</author><pubDate>Wed, 28 Dec 2016 15:26:50 +0800</pubDate><description><![CDATA[* 功能：在指定目录下，模糊查找包含标识的文件
     * 参数：{
     * $params $path string [搜索目录],
     * $params $time_tag string [模糊查询的标识符]
     * }
     * 返回： {$result string [返回文件完整路径，如果没有，则为空]}
     * */
    functio]]></description><category></category></item><item><title><![CDATA[下划线风格转驼峰命名法]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/53908936</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/53908936</guid><author>lanrenol</author><pubDate>Wed, 28 Dec 2016 15:25:50 +0800</pubDate><description><![CDATA[* 参数：{$params $str string [搜索目录]}
     * 返回： {$result string [转换结果]}

    public function toCamelCase($str){


        $array = explode('_', $str);
        $result = '';
        foreach($array]]></description><category></category></item><item><title><![CDATA[驼峰命名法转下划线风格]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/53908860</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/53908860</guid><author>lanrenol</author><pubDate>Wed, 28 Dec 2016 15:18:45 +0800</pubDate><description><![CDATA[* 参数：{$params $str string [搜索目录]}
     * 返回： {$result string [转换结果]}  


  public function toUnderScore($str){


        $array = array();
        for($i=0;$i
            if($str[$i] == strto]]></description><category></category></item><item><title><![CDATA[通过ssh远程控制局域网内的用户（简单脚本）]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/42129359</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/42129359</guid><author>lanrenol</author><pubDate>Wed, 24 Dec 2014 21:22:38 +0800</pubDate><description><![CDATA[解决每次手工输入配置，还在继续完善中。
#!/bin/bash
remote_user=root
remote_port=9001
remote_host=ip.com


echo "是否进行配置（yes/no）:"
read is_set
echo "请配置本次连接的时间:"
read second 
if [[ $is_set == 'no' || $is_set ==]]></description><category></category></item><item><title><![CDATA[ruby操作excel,还在完善中，仅供参考]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/42129297</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/42129297</guid><author>lanrenol</author><pubDate>Wed, 24 Dec 2014 21:18:20 +0800</pubDate><description><![CDATA[#coding: utf-8
require 'rubygems'
require 'roo'
require 'spreadsheet'
class MyExcel


  # 功能： 初始化
  # 描述： 根据提供的文件，返回文件地址，文件，文件名，文件路径，文件扩展名.
  # 参数： url
  def initialize(url=nil)
    if !url]]></description><category></category></item><item><title><![CDATA[ruby功能模块测试方法集，仅供参考]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/42129155</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/42129155</guid><author>lanrenol</author><pubDate>Wed, 24 Dec 2014 21:12:03 +0800</pubDate><description><![CDATA[#coding: utf-8
require 'open-uri'
require 'net/http'
require 'nokogiri'
#require 'iconv'
require 'uri'
require 'pathname'


class A
  def initialize
    @way = ""
  end


  def a_method]]></description><category></category></item><item><title><![CDATA[ruby hash]]></title><link>https://blog.youkuaiyun.com/lanrenol/article/details/42128857</link><guid>https://blog.youkuaiyun.com/lanrenol/article/details/42128857</guid><author>lanrenol</author><pubDate>Wed, 24 Dec 2014 21:01:39 +0800</pubDate><description><![CDATA[ruby hash的简单使用]]></description><category></category></item></channel></rss>