- 博客(13)
- 收藏
- 关注
原创 ubuntu18.04部署php+thinkphp6
安装环境sudo apt-get install zip unzip安装 mysqlsudo apt-get install mysql-server mysql-client安装 apache2sudo apt-get install apache2sudo /etc/init.d/apache2 restart安装 php7sudo apt-cache search php7 #搜索适合的版本sudo apt-cache search libapache2-mod-php
2021-10-10 19:02:52
448
原创 Ubuntu 18.04安装gitlab-14.3.2-ee
1.安装并配置必要的依赖关系sudo apt-get updatesudo apt-get install -y curl openssh-server ca-certificates#接下来,安装Postfix发送通知邮件。如果您想使用其他解决方案发送电子邮件,请跳过此步骤并在安装GitLab后配置外部SMTP服务器。sudo apt-get install -y postfix2.添加GitLab软件包存储库并安装软件包添加GitLab软件包存储库。curl https://pack
2021-10-09 17:35:23
414
原创 apt-get卸载整理
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
2021-10-09 16:20:44
8330
2
原创 Mysql从文件导入到数据库或从Redis删除key
通常我们导入数据到mysql数据库,一般是直接从sql文件导入,或通过其他程序连接到数据库导入。但如果遇到有大量(百万级)数据需要导入到数据库,且非sql文件。比如说:文本文件: ip.txt192.168.0.1... 192.168.0.111...上百万条记录,我们可以使用LOAD DATA LOCAL INFILE方式导入数据检查当前运行环境配置是否开启安全目录...
2020-04-26 16:03:06
141
原创 git记住输入用户名密码
每次提交代码都要输入用户名密码,十分麻烦,教大家怎么让Git记住密码。执行如下命令, 会在用户主目录的.gitconfig文件中生成下面的配置:git config --global credential.helper store[credential] helper = store如果没有–global,则在当前项目下的.git/config文件中添加。...
2020-04-26 14:34:32
131
原创 在指定目录下,模糊查找包含标识的文件
* 功能:在指定目录下,模糊查找包含标识的文件 * 参数:{ * $params $path string [搜索目录], * $params $time_tag string [模糊查询的标识符] * } * 返回: {$result string [返回文件完整路径,如果没有,则为空]} * */ functio
2016-12-28 15:26:50
1787
原创 下划线风格转驼峰命名法
* 参数:{$params $str string [搜索目录]} * 返回: {$result string [转换结果]} public function toCamelCase($str){ $array = explode('_', $str); $result = ''; foreach($array
2016-12-28 15:25:50
761
原创 驼峰命名法转下划线风格
* 参数:{$params $str string [搜索目录]} * 返回: {$result string [转换结果]} public function toUnderScore($str){ $array = array(); for($i=0;$i if($str[$i] == strto
2016-12-28 15:18:45
612
原创 通过ssh远程控制局域网内的用户(简单脚本)
解决每次手工输入配置,还在继续完善中。#!/bin/bashremote_user=rootremote_port=9001remote_host=ip.comecho "是否进行配置(yes/no):"read is_setecho "请配置本次连接的时间:"read second if [[ $is_set == 'no' || $is_set ==
2014-12-24 21:22:38
534
原创 ruby操作excel,还在完善中,仅供参考
#coding: utf-8require 'rubygems'require 'roo'require 'spreadsheet'class MyExcel # 功能: 初始化 # 描述: 根据提供的文件,返回文件地址,文件,文件名,文件路径,文件扩展名. # 参数: url def initialize(url=nil) if !url
2014-12-24 21:18:20
664
原创 ruby功能模块测试方法集,仅供参考
#coding: utf-8require 'open-uri'require 'net/http'require 'nokogiri'#require 'iconv'require 'uri'require 'pathname'class A def initialize @way = "" end def a_method
2014-12-24 21:12:03
476
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人