linux杂记

openssh:

1.基于密钥的pscp使用:

pscp -i D:/tools/1.ppk [email protected]:/var/www/wed/index.html d:/index.html

从源码制作二进制安装包:

1.deb安装包:

sudo dh_make -p php_5.3.6 -f ../php-5.3.6.tar.gz(注意p参数name_version)

通用Makefile:

Srcs = $(wildcard *.cpp)
Objs = $(Srcs:%.cpp=%.o)
Deps = $(Srcs:%.cpp=%.d)

.PHONY:all clean
all:dep test

dep:
%.d:%.cpp
rm -f $@; /
$(CC) -MM $^ | sed 's//(.*/.o/)//1 $@/g' > $@;

test:$(Objs)
-include $(Deps)

clean:
rm -f *.o *.d test

//_end

你可能感兴趣的:(linux)