- ubuntu安装wordpress
lissettecarlr
1安装nginx网上安装方式很多,这就就直接用apt-get了apt-getinstallnginx不用启动啥,然后直接在浏览器里面输入IP:80就能看到nginx的主页了。如果修改了一些配置可以使用下列命令重启一下systemctlrestartnginx.service2安装mysql输入安装前也可以更新一下软件源,在安装过程中将会让你输入数据库的密码。sudoapt-getinstallmy
- linux的安装程序 与 文件 相关的命令
可能只会写BUG
c语言c/c++linuxlinux服务器运维
软件安装卸载命令软件包介绍软件包命名格式dpkg命令apt-get命令apt-get命令压缩和解压命令压缩文件后缀压缩命令打包和解包命令tar命令文件分割命令split命令文件操作相关命令cat命令head命令tail命令more命令less命令管道命令wc命令grep命令find命令cut命令sort命令uniq命令diff命令文件属性命令chmod命令chown命令chgrp命令ln命令硬链接
- linux json编译报错
nancynull
c++Linuxlinuxc++编译
背景:ubuntu16.04,使用apt-get安装过jsoncpp问题一:编译时报找不到json.h问题二:编译.so时,提示/usr/bin/ld:cannotfind-ljson解决方案:https://stackoverflow.com/questions/36861355/fatal-error-with-jsoncpp-while-compiling具体翻译如下:针对问题一:修改#in
- GIT使用常见问题
汽车软件工程师001
Gitgit
如何安装Git?在Windows操作系统中,可以从Git官方网站(https://git-scm.com)下载最新的Git安装程序,然后按照提示进行安装。在Mac操作系统中,可以使用Homebrew或者直接从Git官方网站下载安装程序进行安装。在Linux操作系统中,可以使用包管理器进行安装,例如在Ubuntu中可以使用apt-get命令进行安装。如何配置Git?在安装完Git之后,需要进行一些基
- Ubuntu更换apt-get的下载源
愤愤的有痣青年
将以下内容替换/etc/apt/sources.list中的内容deb-srchttp://archive.ubuntu.com/ubuntuxenialmainrestricted#Addedbysoftware-propertiesdebhttp://mirrors.aliyun.com/ubuntu/xenialmainrestricteddeb-srchttp://mirrors.aliy
- dockerfile部署fastapi项目
hzw0510
dockerfastapi
dockerfile部署fastapi项目1、Dockerfile#使用Python官方镜像作为基础镜像FROMpython:3.8-slim#更新apt-get源并安装依赖#RUNapt-getupdate-y&&apt-getinstall-ygit#设置环境变量ENVPYTHONDONTWRITEBYTECODE1ENVPYTHONUNBUFFERED1#创建工作目录WORKDIR/app#
- 【LINUX-python】PATH、sys.path、PYTHONPATH
m0_46093829
ROS基础python学习ubuntulinux
这个博客已经写的非常好了,感谢博主,我只是又梳理了一次。【python】搞懂环境变量从此3P都不怕...PATH、sys.path、PYTHONPATH-简书以下是我对python及配置python环境的梳理:python既是软件也是一门编程语言,所以我们就先从安装软件开始梳理一、安装python在linux中安装python有apt-get自动安装和源码安装(以下只是梳理了一下这两种方法的本质并
- windows中使用docker构建镜像
Xiaofei@IDO
运维架构dockerubuntulinux
背景在启动之前,记得要先按照windows系统的DockerDesktop的,并且在使用docker之前要先启动DockerDesktop软件。否则,无法使用Docker。最近,由于项目开发需求,需要在本地构建镜像,以便迅速进行部署。采用了window系统的docker进行构建镜像。但是遇到了一个问题,就是构建过程中,apt-get安装软件的过程中,出现网络错误:SECURITY:URLredir
- 《Git/Gitlab进阶》二:omnibus package安裝gitlab-ce
紫狐挽诗
omnibus-package安装gitlab-ceubuntu下安装gitlab-ce官方推荐安装,步骤也非常简单.安装并配置需要的依赖1先更新apt-get:sudoapt-getupdate2再安装openssh-serversudoapt-getinstall-ycurlopenssh-serverca-certificates注意,在ubuntu18安装时openssh-server时,
- Debian常用包管理命令用法详解
码农飞飞
脚本语言工具使用debianlinux服务器包管理debuildaptdpkg
文章目录apt-get/apt-cacheaptdpkgdpkg-sourcedebuilddpkg和apt是两个不同的工具用于管理Debian系列Linux发行版上的软件包。dpkg是底层工具,负责直接安装、删除和管理软件包文件(.deb)。它不会自动处理软件包的依赖关系,需要用户手动处理。apt是一个高级工具,自动处理软件包依赖,能够从软件仓库中下载和安装软件包,进行更新和升级。apt依赖dp
- 如何在Ubuntu上安装Apache Http服务器
cyan20115
有两种方法可以在Ubuntu上安装ApacheHttp服务器:使用apt命令自动安装。配置和构建源代码,然后手动安装。1.自动安装1.使用“apt-cachesearch”命令搜索Apache软件包apt-cachesearchapache2.获得Apache软件包名称“apache2”,发出“apt-get”安装命令。您需要“sudo”特权才能进行此安装。sudoapt-getinstallap
- 【jetson交叉编译(5)】如何将apt安装的库复制出来?
Hali_Botebie
linux服务器运维
将apt将apt安装的库复制出来安装的库复制出来,通常指的是将apt-get命令,通常指的是将apt-get命令安装的软件包及其相关文件从系统中提取出来,以便在其他系统或环境中安装的软件包及其相关文件从系统中提取出来,以便在其他系统或环境中使用。使用。以下是将apt安装的库复制出来的步骤:以下是将apt安装的库复制出来的步骤:一、定位安装包路径一、定位安装包路径apt-get下载的软件包默认保存在
- windows docker 执行apt-get 权限问题
学海无涯码代码
windowsdocker容器
今天在windows下安装的docker部署的容器执行apt-get遇到权限问题PSC:\Users\xiaok>dockerexec-itjenkinssh$apt-getupdateReadingpackagelists...DoneE:Couldnotopenlockfile/var/lib/apt/lists/lock-open(13:Permissiondenied)E:Unableto
- 解决ubuntu14.04 nam安装问题
luckespduino
安装ns2只需要apt-getinstallns2要安装nam1.14版本apt-get安装的1.15版本会报SegmentFault(coredump)错误首先下载nam1.14deb版本我下面放一个百度云盘连接链接:https://pan.baidu.com/s/1T2jBT1j8NRK619XKFRZ9MQ提取码:v1vu下载后使用下面命令安装即可dpkg-inam_1.14_amd64.d
- ubuntu下装软件,有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是 因为系统无法达到您要求的状态造成的。
CLM_Only
ubuntu
使用sudoapt-getinstall安装东西的时候,出现各种依赖问题,能装上也就算了,装不上就巨坑!还是aptitude大法好!sudoapt-getinstallaptitudeaptitude可以比apt-get更加智能地解决依赖问题,然后sudoaptitudeinstall对应安装包
- 解决Ubuntu或Debian apt-get IPv6问题:如何设置仅使用IPv4
在Ubuntu或Debian系统中,apt-get可能默认使用IPv6进行网络连接,这在某些情况下可能会导致问题,比如连接速度慢或者连接失败。要解决这个问题,我们可以设置apt-get仅使用IPv4。下面将详细介绍如何进行这样的设置。首先,我们需要明白Ubuntu和Debian默认使用IPv6的原因。IPv6是Internet协议的最新版本,设计用于替代IPv4。IPv6解决了IPv4地址耗尽的问
- 解决 Ubuntu apt-get update 太慢的问题
SlowGO
ubuntu下经常需要更新源,非常慢,可以通过替换源列表文件的方式来加速,步骤:1.备份源列表文件sudocp/etc/apt/sources.list/etc/apt/sources.list.bak2.修改源列表/etc/apt/sources.list内容替换为:#debcdrom:[Ubuntu16.04LTS_XenialXerus_-Releaseamd64(20160420.1)]/
- BUG|apt-get update 时Permission denied
Brlat
问题:运行apt-getupdateFailedtofetchhttps://mirrors.tuna.tsinghua.Components-amd64.yml13:Permissiondenied)解决方案:apt-getclean
- Linux Ubuntu 20.04LTS安装OpenSSL步骤
难搞哦~
ubuntulinuxopenssl
其实Ubuntu20.04LTS系统自带OpenSSL的,但是这个自带的openssl是没有和,对于开发人员编程来说用不了,编译就报错找不到头文件,接口未定义等。首先在终端查看LinuxUbuntu20.04LTS自带openssl的版本1.1.1f:有两种办法补回头文件和库文件:方法一、通过apt-get下载libssl-dev即可解决(最简单推荐此方法,不会对系统本身依赖openssl产生任何
- Ubuntu 18.04 Desktop 下的基础操作,零基础入门
笑着前进.h
ubuntuc语言
目录(一)基本操作之系统换源apt和apt-get换源:nano方式换源:gedit方式换源:vi/vim方式更加详细的使用教程可参考:vi与vim编辑器详细使用说明换源:ssh连接(WindowsPowershell)(二)在LInux上实现C语言编写
- Kali Linux安装第三方软件
大学霸IT达人
KaliLinux安装第三方软件在KaliLinux中,自带了许多渗透测试工具。大学霸IT达人但是,一些工具默认没有安装(如Nessus、OpenVAS),则需要用户手动安装。其中,如果软件源提供了该安装包,直接使用apt-get命令安装即可。如果软件源没有提供安装包,则需要到网络中下载,后进行安装。为了安装方便,建议下载二进制包格式。其中,KaliLinux中的二进制包格式为.deb。对于这类包
- 【fortran】开源BLAS库矩阵乘法的简单Fortran示例
尘中928
编程数学矩阵线性代数
一、安装开源BLAS库OpenBLAS安装OpenBLAS可以通过几个步骤来完成,这些步骤因操作系统的不同而有所变化。以下是为几种常见系统下的安装。在Ubuntu/DebianLinux上安装OpenBLAS在基于Debian的系统(如Ubuntu)上,可以使用apt-get来安装OpenBLAS:sudoapt-getupdatesudoapt-getinstalllibopenblas-dev
- opencv ImportError: libSM.so.6: cannot open shared object file: No such file or directory
coderwangson
opencvImportError:libSM.so.6:cannotopensharedobjectfile:Nosuchfileordirectory这个问题,网上的解决方案大多数都是apt-get安装libSM,但是由于我这里不方便使用包安装,所以发现可以使用pipinstallopencv-python-headless安装无需图形依赖库的opencv。参考:https://stackov
- Hadoop分布式计算实验踩坑实录及小结
小童同学_
HIThadoop分布式ubuntujava
目录Hadoop分布式计算实验踩坑实录及小结踩坑实录Hadoop学习Hadoop简介HDFSSomeconceptsMapReduce主要配置文件集群搭建来源与引用Hadoop分布式计算实验踩坑实录及小结踩坑实录单机jdk配置Ubuntu下安装jdk11,不熟悉apt-get的默认目录及目录配置,直接在Oracle找了Linux的压缩包在虚拟机上解压,解压到指定目录后配一下java环境变量。/et
- MobaXterm 之 Network Services
凌一同学
之前记得有跟大家介绍过一款号称终端神器的一款软件MobaXterm,为什么会号称终端神器呢,在我看来是内置了一个Cygwin,支持很多基本的常用的Linux命令,比如awk,cat,grep,find,tar,history等。就算某些命令提示CommandNotFound,后期也是可以通过apt-get来管理(安装、卸载)这些所需的命令,而且命令也可以在类Linux系统上运行,不仅省去了命令学习
- linux将grep行注释,Linux grep命令的12个实用示例
靡菲斯托
linux将grep行注释
你曾经遇到过在文件中查找特定字符串或模式的任务,但是不知道从哪里开始查找?那么,这里是grep来救援!12Grep命令示例grep是配备在Linux上的每一个分布的功能强大的文件搜索模式。如果出于某种原因,这是不是你的系统上安装,你可以很容易地通过它你的包管理器进行安装(在Debian/Ubuntu的apt-get和Yum在RHEL/CentOS的/Fedora的)。$sudoapt-getins
- ./configure make and menuconfig 这几个方式有什么区别?make install 和make有什么区别?apt-get install和apt install有什么区别
ZYM66
linux服务器运维
1在软件编译和安装的上下文中,./configure,make,和menuconfig是用于不同阶段和目的的命令和工具。这里是它们各自的作用和区别:./configure:这个命令通常用于预编译的步骤。它是一个脚本,用于检测你的系统环境,并根据这些环境设置编译时的参数。./configure会创建一个Makefile,这是make命令所需的。它确保软件包含所有必要的依赖项,并且可以在你的系统上编译
- swift使用mysql教程_使用 Swift 3.0 操作 MySQL 数据库
weixin_39749243
swift使用mysql教程
在这篇swift教程中,我们采用Ubuntu16.04系统和MySQL5.7。MySQL5.7引入了一系列的新特性。其中一个就是提供了更加高效的存储JSON数据的能力,同时提供了查询JSON数据内部的能力。稍后如果MySQL5.7成为了Ubuntu16.04上默认的MySQL版本以后,我们将使用Ubuntu16.04作为我们的操作系统。如果你还没有安装Swift,你可以使用apt-get方式来安装
- 操作系统-01-Mac 苹果操作系统 Brew /端口占用
老马啸西风
osmacos操作系统osapple
Brewbrew又叫Homebrew,是MacOSX上的软件包管理工具。类似ubuntu中的apt-get。Install$/usr/bin/ruby-e"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"如下houbinbindeMacBook-Pro:toolshoubinbin$/usr
- ubuntu16.04安装NVIDIA显卡驱动问题
IT小助手
ubuntu16.04安装NVIDIA显卡驱动最近公司购买了几台服务器,做大数据运算使用,安装了ubuntu16.04,安装显卡驱动遇到了些问题,把正确安装驱动方法写下供参考。1、系统安装(略,比较简单,可以网上搜索一下)2、安装ssh,apt-getinstallopenssh-serverssh连接服务器时报错,使用sudoapt-getupdate获取到最新的软件包,然后在运行apt-get
- 关于旗正规则引擎中的MD5加密问题
何必如此
jspMD5规则加密
一般情况下,为了防止个人隐私的泄露,我们都会对用户登录密码进行加密,使数据库相应字段保存的是加密后的字符串,而非原始密码。
在旗正规则引擎中,通过外部调用,可以实现MD5的加密,具体步骤如下:
1.在对象库中选择外部调用,选择“com.flagleader.util.MD5”,在子选项中选择“com.flagleader.util.MD5.getMD5ofStr({arg1})”;
2.在规
- 【Spark101】Scala Promise/Future在Spark中的应用
bit1129
Promise
Promise和Future是Scala用于异步调用并实现结果汇集的并发原语,Scala的Future同JUC里面的Future接口含义相同,Promise理解起来就有些绕。等有时间了再仔细的研究下Promise和Future的语义以及应用场景,具体参见Scala在线文档:http://docs.scala-lang.org/sips/completed/futures-promises.html
- spark sql 访问hive数据的配置详解
daizj
spark sqlhivethriftserver
spark sql 能够通过thriftserver 访问hive数据,默认spark编译的版本是不支持访问hive,因为hive依赖比较多,因此打的包中不包含hive和thriftserver,因此需要自己下载源码进行编译,将hive,thriftserver打包进去才能够访问,详细配置步骤如下:
1、下载源码
2、下载Maven,并配置
此配置简单,就略过
- HTTP 协议通信
周凡杨
javahttpclienthttp通信
一:简介
HTTPCLIENT,通过JAVA基于HTTP协议进行点与点间的通信!
二: 代码举例
测试类:
import java
- java unix时间戳转换
g21121
java
把java时间戳转换成unix时间戳:
Timestamp appointTime=Timestamp.valueOf(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()))
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:m
- web报表工具FineReport常用函数的用法总结(报表函数)
老A不折腾
web报表finereport总结
说明:本次总结中,凡是以tableName或viewName作为参数因子的。函数在调用的时候均按照先从私有数据源中查找,然后再从公有数据源中查找的顺序。
CLASS
CLASS(object):返回object对象的所属的类。
CNMONEY
CNMONEY(number,unit)返回人民币大写。
number:需要转换的数值型的数。
unit:单位,
- java jni调用c++ 代码 报错
墙头上一根草
javaC++jni
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000777c3290, pid=5632, tid=6656
#
# JRE version: Java(TM) SE Ru
- Spring中事件处理de小技巧
aijuans
springSpring 教程Spring 实例Spring 入门Spring3
Spring 中提供一些Aware相关de接口,BeanFactoryAware、 ApplicationContextAware、ResourceLoaderAware、ServletContextAware等等,其中最常用到de匙ApplicationContextAware.实现ApplicationContextAwaredeBean,在Bean被初始后,将会被注入 Applicati
- linux shell ls脚本样例
annan211
linuxlinux ls源码linux 源码
#! /bin/sh -
#查找输入文件的路径
#在查找路径下寻找一个或多个原始文件或文件模式
# 查找路径由特定的环境变量所定义
#标准输出所产生的结果 通常是查找路径下找到的每个文件的第一个实体的完整路径
# 或是filename :not found 的标准错误输出。
#如果文件没有找到 则退出码为0
#否则 即为找不到的文件个数
#语法 pathfind [--
- List,Set,Map遍历方式 (收集的资源,值得看一下)
百合不是茶
listsetMap遍历方式
List特点:元素有放入顺序,元素可重复
Map特点:元素按键值对存储,无放入顺序
Set特点:元素无放入顺序,元素不可重复(注意:元素虽然无放入顺序,但是元素在set中的位置是有该元素的HashCode决定的,其位置其实是固定的)
List接口有三个实现类:LinkedList,ArrayList,Vector
LinkedList:底层基于链表实现,链表内存是散乱的,每一个元素存储本身
- 解决SimpleDateFormat的线程不安全问题的方法
bijian1013
javathread线程安全
在Java项目中,我们通常会自己写一个DateUtil类,处理日期和字符串的转换,如下所示:
public class DateUtil01 {
private SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
public void format(Date d
- http请求测试实例(采用fastjson解析)
bijian1013
http测试
在实际开发中,我们经常会去做http请求的开发,下面则是如何请求的单元测试小实例,仅供参考。
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.httpclient.HttpClient;
import
- 【RPC框架Hessian三】Hessian 异常处理
bit1129
hessian
RPC异常处理概述
RPC异常处理指是,当客户端调用远端的服务,如果服务执行过程中发生异常,这个异常能否序列到客户端?
如果服务在执行过程中可能发生异常,那么在服务接口的声明中,就该声明该接口可能抛出的异常。
在Hessian中,服务器端发生异常,可以将异常信息从服务器端序列化到客户端,因为Exception本身是实现了Serializable的
- 【日志分析】日志分析工具
bit1129
日志分析
1. 网站日志实时分析工具 GoAccess
http://www.vpsee.com/2014/02/a-real-time-web-log-analyzer-goaccess/
2. 通过日志监控并收集 Java 应用程序性能数据(Perf4J)
http://www.ibm.com/developerworks/cn/java/j-lo-logforperf/
3.log.io
和
- nginx优化加强战斗力及遇到的坑解决
ronin47
nginx 优化
先说遇到个坑,第一个是负载问题,这个问题与架构有关,由于我设计架构多了两层,结果导致会话负载只转向一个。解决这样的问题思路有两个:一是改变负载策略,二是更改架构设计。
由于采用动静分离部署,而nginx又设计了静态,结果客户端去读nginx静态,访问量上来,页面加载很慢。解决:二者留其一。最好是保留apache服务器。
来以下优化:
- java-50-输入两棵二叉树A和B,判断树B是不是A的子结构
bylijinnan
java
思路来自:
http://zhedahht.blog.163.com/blog/static/25411174201011445550396/
import ljn.help.*;
public class HasSubtree {
/**Q50.
* 输入两棵二叉树A和B,判断树B是不是A的子结构。
例如,下图中的两棵树A和B,由于A中有一部分子树的结构和B是一
- mongoDB 备份与恢复
开窍的石头
mongDB备份与恢复
Mongodb导出与导入
1: 导入/导出可以操作的是本地的mongodb服务器,也可以是远程的.
所以,都有如下通用选项:
-h host 主机
--port port 端口
-u username 用户名
-p passwd 密码
2: mongoexport 导出json格式的文件
- [网络与通讯]椭圆轨道计算的一些问题
comsci
网络
如果按照中国古代农历的历法,现在应该是某个季节的开始,但是由于农历历法是3000年前的天文观测数据,如果按照现在的天文学记录来进行修正的话,这个季节已经过去一段时间了。。。。。
也就是说,还要再等3000年。才有机会了,太阳系的行星的椭圆轨道受到外来天体的干扰,轨道次序发生了变
- 软件专利如何申请
cuiyadll
软件专利申请
软件技术可以申请软件著作权以保护软件源代码,也可以申请发明专利以保护软件流程中的步骤执行方式。专利保护的是软件解决问题的思想,而软件著作权保护的是软件代码(即软件思想的表达形式)。例如,离线传送文件,那发明专利保护是如何实现离线传送文件。基于相同的软件思想,但实现离线传送的程序代码有千千万万种,每种代码都可以享有各自的软件著作权。申请一个软件发明专利的代理费大概需要5000-8000申请发明专利可
- Android学习笔记
darrenzhu
android
1.启动一个AVD
2.命令行运行adb shell可连接到AVD,这也就是命令行客户端
3.如何启动一个程序
am start -n package name/.activityName
am start -n com.example.helloworld/.MainActivity
启动Android设置工具的命令如下所示:
# am start -
- apache虚拟机配置,本地多域名访问本地网站
dcj3sjt126com
apache
现在假定你有两个目录,一个存在于 /htdocs/a,另一个存在于 /htdocs/b 。
现在你想要在本地测试的时候访问 www.freeman.com 对应的目录是 /xampp/htdocs/freeman ,访问 www.duchengjiu.com 对应的目录是 /htdocs/duchengjiu。
1、首先修改C盘WINDOWS\system32\drivers\etc目录下的
- yii2 restful web服务[速率限制]
dcj3sjt126com
PHPyii2
速率限制
为防止滥用,你应该考虑增加速率限制到您的API。 例如,您可以限制每个用户的API的使用是在10分钟内最多100次的API调用。 如果一个用户同一个时间段内太多的请求被接收, 将返回响应状态代码 429 (这意味着过多的请求)。
要启用速率限制, [[yii\web\User::identityClass|user identity class]] 应该实现 [[yii\filter
- Hadoop2.5.2安装——单机模式
eksliang
hadoophadoop单机部署
转载请出自出处:http://eksliang.iteye.com/blog/2185414 一、概述
Hadoop有三种模式 单机模式、伪分布模式和完全分布模式,这里先简单介绍单机模式 ,默认情况下,Hadoop被配置成一个非分布式模式,独立运行JAVA进程,适合开始做调试工作。
二、下载地址
Hadoop 网址http:
- LoadMoreListView+SwipeRefreshLayout(分页下拉)基本结构
gundumw100
android
一切为了快速迭代
import java.util.ArrayList;
import org.json.JSONObject;
import android.animation.ObjectAnimator;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayo
- 三道简单的前端HTML/CSS题目
ini
htmlWeb前端css题目
使用CSS为多个网页进行相同风格的布局和外观设置时,为了方便对这些网页进行修改,最好使用( )。http://hovertree.com/shortanswer/bjae/7bd72acca3206862.htm
在HTML中加入<table style=”color:red; font-size:10pt”>,此为( )。http://hovertree.com/s
- overrided方法编译错误
kane_xie
override
问题描述:
在实现类中的某一或某几个Override方法发生编译错误如下:
Name clash: The method put(String) of type XXXServiceImpl has the same erasure as put(String) of type XXXService but does not override it
当去掉@Over
- Java中使用代理IP获取网址内容(防IP被封,做数据爬虫)
mcj8089
免费代理IP代理IP数据爬虫JAVA设置代理IP爬虫封IP
推荐两个代理IP网站:
1. 全网代理IP:http://proxy.goubanjia.com/
2. 敲代码免费IP:http://ip.qiaodm.com/
Java语言有两种方式使用代理IP访问网址并获取内容,
方式一,设置System系统属性
// 设置代理IP
System.getProper
- Nodejs Express 报错之 listen EADDRINUSE
qiaolevip
每天进步一点点学习永无止境nodejs纵观千象
当你启动 nodejs服务报错:
>node app
Express server listening on port 80
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at exports._errnoException (
- C++中三种new的用法
_荆棘鸟_
C++new
转载自:http://news.ccidnet.com/art/32855/20100713/2114025_1.html
作者: mt
其一是new operator,也叫new表达式;其二是operator new,也叫new操作符。这两个英文名称起的也太绝了,很容易搞混,那就记中文名称吧。new表达式比较常见,也最常用,例如:
string* ps = new string("
- Ruby深入研究笔记1
wudixiaotie
Ruby
module是可以定义private方法的
module MTest
def aaa
puts "aaa"
private_method
end
private
def private_method
puts "this is private_method"
end
end