项目 | 内容 |
---|---|
终端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 屏幕 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |