`
文章列表
淘宝 npm 地址: http://npm.taobao.org/ 如何使用 有很多方法来配置npm的registry地址,下面根据不同情境列出几种比较常用的方法。以淘宝npm镜像举例: 1.临时使用 npm --registry https://registry.npm.taobao.org install express 1 2.持久使用 npm config set registry https://registry.npm.taobao.org 1 配置后可通过下面方式来验证是否成功 npm config get registry 或 np ...
在 Vue 中,可以利用一个 .vue 文件实现组件化,而不需要对每个组件分别建立 style, scripts 和 view。 这样做的好处是使组件能更加直观,而坏处是目前有些 editor 对 .vue 的语法支持还是不太好。 我用 Atom 写 .vue 的时候,<style& ...
默认情况下NodeJS安装会同时安装npm(模块管理器:用于管理用户require的模块,有全局和本地两种)。 注: 全局:执行npm  install  <模块的名字>  -g 就会将模块装在全局路径下,当用户在程序中require(<模块的名字>)的时候不用考虑模块在哪,如果不修改全局路径,用户下载的模块会默认在C:\Users\Administrator\AppData\Roaming\npm这个路径下。 局部:执行npm  install  <包的名字>(注意少了-g)就会将模块安装在dos窗当前指向的路径下,这时候其他路径项目无法引用到该版本 ...
idea中,发布项目到OSChina的Git中,当时按照这样的流程添加Git,然后push,提示:push to origin/master war rejected"。   解决方案如下: 1.切换到自己项目所在的目录,右键选择GIT BASH Here 2.在terminl窗口中依次输入命令: git pull git pull origin master git pull origin master --allow-unrelated-histories
开始切入正题: 怎么上传本地项目到码云/Github?   需要条件: 1.码云/Github建好的git项目 2.IDEA编辑器 3.本地项目     步骤1:创建远程项目
比如查找当前目录下面所有的php文件里面某个关键字 复制代码 代码如下: find ./ -name "*.php" | xargs grep '关键字' 如果需要查找的内容包含特殊符号,比如$等等,grep要加参数 复制代码 代码如下: find ./ -name "*.php" | xargs grep -F '关键字' 文件名查找 文件名查找方法: 例如我们知道某个文件包含有srm这3个字母,那么要找到系统中所有包含有这3个字母的文件是可以实现的,输入: 复制代码 代码如下: find /etc - ...
RUN sed -i "s/archive.ubuntu./mirrors.aliyun./g" /etc/apt/sources.list RUN sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list RUN sed -i "s/security.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list   把相应的源替换成阿里云的镜像。     R ...
由于要近期使用hadoop等进行相关任务执行,操作linux时候就多了 以前只在linux上配置J2EE项目执行环境,无非配置下jdk,部署tomcat,再通过docker或者jenkins自动部署上去 看下进程,复制粘贴删除等基本操作,很多东西久了不用就忘了,所有写个demo巩固下曾经的linux知识 后续会有hadoop等主流的大数据相关环境的搭建及使用   ---------------------------------------------------------------------------------------------------------------- ...
  今天又帮其他项目装了一遍GP,加上之前的两次,这是第三次了,虽然每次都有记录,但这次安装还是发现漏写了一些步骤,在此详细记录一下,需要的童鞋可以借鉴。 1、准备   这里准备了4台服务器,1台做master,1台做standby,4台都做存储,为了保密真实的IP地址和主机名都换成“艺名”了。 OS:Red Hat Enterprise Linux Server release 6.4 (Santiago) GP:greenplum-db-4.3.6.2-build-1-RHEL5-x86_64.zip JDK:1.7+ 192.168.1.100  bj-gp-n ...
在使用docker容器时,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found,这个时候就需要安装vim,可是当你敲apt-get install vim命令时,提示:           Reading package lists... Done         Building dependency tree                Reading state information... Done         E: Unable to locate package vim           这时候需要敲:apt-get upda ...
[root@localhost ~]# cd msmtp-1.4.20[root@localhost msmtp-1.4.20]# ./configure checking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking target system type... i686-pc-linux-gnuchecking for a BSD-compatible install... /usr/bin/install -cchecking whether bu ...
阿里云 Centos 7 PHP7环境配置 LNMP (centos7+nginx+MySQL5.7.9+PHP7)   首先更新系统软件$ yum update   安装nginx 1.安装nginx源 $ yum localinstall http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 2.安装nginx $ yum install nginx 3.启动nginx $ service nginx start Redirecting to ...
一、系统环境 yum update升级以后的系统版本为 [root@yl-web yl]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) 二、mysql安装 一般网上给出的资料都是 #yum install mysql #yum install mysql-server #yum install mysql-devel 安装mysql和mysql-devel都成功,但是安装mysql-server失败,如下: [root@yl-web yl]# yum install m ...
刚刚安装好了mysql数据库,root用户登录没有问题,但是在创建了新的数据库后却无法登录,报“ERROR 1045 (28000): Access denied for user”这样的错误,下面对这个错误进行重演,首先以root用户登录: [root@zabbix ~]# mysql -uroot -proot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.5.16-log MySQL Community Server ...
备份相应的表格pg_dump -t st_passports -t sl_uploadedfiles -t sl_salarytypemap -t sl_salary_test -t sl_notices -t sl_ip_documents -t sl_departtypemap -t sl_budgetstate -t sl_budgetinfo -t sl_budgetdetail single_database > single_database.bak恢复数据库psql single_database < single_database.bak备份单张表络pg_dump ...
Global site tag (gtag.js) - Google Analytics