linux-server-expert by duck4nh/antigravity-kit
npx skills add https://github.com/duck4nh/antigravity-kit --skill linux-server-expert# Update system
apt update && apt upgrade -y
# Create user with sudo
adduser deploy
usermod -aG sudo deploy
# SSH key auth
mkdir -p /home/deploy/.ssh
chmod 700 /home/deploy/.ssh
# Add public key to authorized_keys
# Disable root login & password auth
vim /etc/ssh/sshd_config
# PermitRootLogin no
# PasswordAuthentication no
systemctl restart sshd
ufw default deny incoming
ufw default allow outgoing
ufw allow ssh
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
ufw status
# /etc/nginx/sites-available/myapp
server {
listen 80;
server_name example.com www.example.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache_bypass $http_upgrade;
}
}
# Enable site
ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
apt install certbot python3-certbot-nginx -y
certbot --nginx -d example.com -d www.example.com
# Auto-renewal is set up automatically
certbot renew --dry-run
# /etc/systemd/system/myapp.service
[Unit]
Description=My App
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/home/deploy/myapp
ExecStart=/usr/bin/node dist/main.js
Restart=on-failure
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable myapp
systemctl start myapp
systemctl status myapp
# Logs
journalctl -u myapp -f # Service logs
tail -f /var/log/nginx/error.log
# Disk
df -h # Disk usage
du -sh /var/* # Directory sizes
# Process
htop # Process monitor
lsof -i :3000 # What uses port
每周安装量
137
代码仓库
GitHub 星标数
16
首次出现
2026年1月27日
安全审计
安装于
opencode125
gemini-cli124
codex121
cursor119
github-copilot116
kimi-cli110
# Update system
apt update && apt upgrade -y
# Create user with sudo
adduser deploy
usermod -aG sudo deploy
# SSH key auth
mkdir -p /home/deploy/.ssh
chmod 700 /home/deploy/.ssh
# Add public key to authorized_keys
# Disable root login & password auth
vim /etc/ssh/sshd_config
# PermitRootLogin no
# PasswordAuthentication no
systemctl restart sshd
ufw default deny incoming
ufw default allow outgoing
ufw allow ssh
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
ufw status
# /etc/nginx/sites-available/myapp
server {
listen 80;
server_name example.com www.example.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache_bypass $http_upgrade;
}
}
# Enable site
ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
apt install certbot python3-certbot-nginx -y
certbot --nginx -d example.com -d www.example.com
# Auto-renewal is set up automatically
certbot renew --dry-run
# /etc/systemd/system/myapp.service
[Unit]
Description=My App
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/home/deploy/myapp
ExecStart=/usr/bin/node dist/main.js
Restart=on-failure
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable myapp
systemctl start myapp
systemctl status myapp
# Logs
journalctl -u myapp -f # Service logs
tail -f /var/log/nginx/error.log
# Disk
df -h # Disk usage
du -sh /var/* # Directory sizes
# Process
htop # Process monitor
lsof -i :3000 # What uses port
Weekly Installs
137
Repository
GitHub Stars
16
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
opencode125
gemini-cli124
codex121
cursor119
github-copilot116
kimi-cli110
iOS Apple Intelligence 路由器使用指南 - Foundation Models 与 AI 方法分流
136 周安装
Arboreto:基因调控网络推断Python库,支持GRNBoost2/GENIE3算法与分布式计算
136 周安装
Hypogenic:基于LLM的自动化科学假设生成与测试框架,加速AI科研发现
136 周安装
Molfeat:Python分子特征化库,100+预训练嵌入与特征化器,支持QSAR建模与虚拟筛选
136 周安装
AI文件整理技能:自动分类、去重、归档,一键整理杂乱文件夹
2025电商全流程主规范v3.0 | 高性能电商网站架构与用户体验设计指南