Skip to content

Instantly share code, notes, and snippets.

View UZPENG's full-sized avatar
🎯
Focusing

ZhiPeng UZPENG

🎯
Focusing
View GitHub Profile
@UZPENG
UZPENG / tomcat.md
Created February 24, 2018 12:59
tomcat常用配置

部署代码片段

<Host name="localhost" appBase="webapps"
      upackWARs="True" autoDeploy="false">
  <Context docBase="<war文件目录>" path="<web目录>">
</Host>
@UZPENG
UZPENG / tomcat.service
Last active February 24, 2018 13:14
centos配置tomcat由systemd控制
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/opt/tomcat/tomcat.pid
ExecStart=/opt/tomcat/bin/catalina.sh start
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
@UZPENG
UZPENG / nginx配置
Last active July 23, 2018 01:09
nginx配置
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
@UZPENG
UZPENG / Mysql.md
Last active February 28, 2018 11:09
sql语句

常用sql

delete from guazi where id 
in 
(select g1.id from 
(select * from guazi) as g1 
inner join 
(select * from guazi) as g2
using(name) 
@UZPENG
UZPENG / linux.md
Last active August 22, 2018 07:16
linux常用命令
项目 内容
终端ss代理 export ALL_PROXY=socks5://127.0.0.1:1080
命令行安装chrome 地址 deb版本地址 rpm版本地址
查看系统版本 lsb_release -a
修改系统主机名 编辑 /etc/hostname 文件
查看端口使用情况 netstat -apn
centos输出安装的包 rpm -qa centos/dkkg -l ubutu
清空 ctrl+u 当前输入 crtl+l 屏幕