Stella981 Stella981
3年前
Linux 添加用户 并且给用户超级管理员权限
1、添加用户,首先用adduser命令添加一个普通用户,命令如下:  addusertommy  //添加一个名为tommy的用户  passwdtommy//修改密码  Changingpasswordforusertommy.  NewUNIXpassword://在这里输
Stella981 Stella981
3年前
Golang 实现curl
  Linux很常用的curl命令,在golang中可以使用net/http来实现模拟get请求  funcGet(urlstring)(resp\Response,errerror)packagemainimport("fmt""io/ioutil"
Stella981 Stella981
3年前
CentOS7安装配置redis
一.安装必要包yuminstallgcc二.linux下安装下载wgethttp://download.redis.io/releases/redis3.0.0.tar.gztarzxvfredis3.0.0.tar.gzcdredis3.0.0如果不加
Stella981 Stella981
3年前
Debian9 下卸载 MariaDB 并安装 Mysql8
因为部分字段需要使用json格式,所以需要MySql8!linux:Debian9mysql:8.0.13完全卸载mariaDBsudoaptgetpurgemariadb这是卸载mysqlsudoaptgetpurgemysql\弹出保留Maria
Easter79 Easter79
3年前
SVN迁移GitLab
SVN迁移GitLab一、环境准备1.准备一台linux服务器2.安装git和gitsvnyuminstallygityuminstallygitsvn二、导出SVN工程gitsvnclonehttp://xx
Wesley13 Wesley13
3年前
(gnome
如题,远程登录到linux服务器,执行gitclonehttps://git.oschina.net/chenjianlong/JRoll2.git//报错(gnomesshaskpass:609):GtkWARNING:cannotopendisplay:解决方案1:
Stella981 Stella981
3年前
SVN迁移GitLab
SVN迁移GitLab一、环境准备1.准备一台linux服务器2.安装git和gitsvnyuminstallygityuminstallygitsvn二、导出SVN工程gitsvnclonehttp://xx
Stella981 Stella981
3年前
MacOS 下写Lua FFI 动态链接库dylib生成
myffi.cintadd(intx,inty){returnxy;}生成object文件 cccmyffi.c  生成动态链接库,Mac下后缀是dylib,Linux是so,Windows是dlllibtooldynamicolibmyff
Wesley13 Wesley13
3年前
Ubuntu apt更换为阿里源
apt源配置在/etc/apt/sources.list,首先备份一下:cd/etc/apt/cpsources.listsources.list.bak然后修改sources.list为:debhttp://mirrors.aliyun.com/ubuntu/xenialmainrest
Wesley13 Wesley13
3年前
ActiveMQ的spring配置文件
从官网copy出来,做了部分修改:1<?xmlversion"1.0"encoding"UTF8"?2<beansxmlns"http://www.springframework.org/schema/beans"3xmlns:xsi"http://www.w3.org/2