惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
量子位
GbyAI
GbyAI
腾讯CDC
T
Tailwind CSS Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
Jina AI
Jina AI
IT之家
IT之家
Y
Y Combinator Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Windows ortamında Python geliştirme ve operasyon yönetimi...
Vebende Akademi · 2026-06-18 · via DEV Community

Vebende Akademi

1. Python Ortam Kontrolü (Windows CLI)

Python sürüm kontrol

python --version
py --version
where python

pip kontrol

pip --version
python -m pip --version

pip güncelleme (kritik)

python -m pip install --upgrade pip


2. Python Çalıştırma Mekanizması (Windows Standard)

Script çalıştırma

python app.py

Py launcher ile sürüm seçme

py app.py
py -3.12 app.py
py -3.11 app.py

Modül çalıştırma

python -m mymodule


3. Sanal Ortam (venv) – Kurumsal Standart

Oluşturma

python -m venv venv

Aktivasyon (PowerShell)

venv\Scripts\Activate.ps1

Aktivasyon (CMD)

venv\Scripts\activate.bat

Deaktivasyon

deactivate


Sanal ortam kontrol

where python
where pip
pip list


4. requirements.txt Yönetimi

Oluşturma

pip freeze > requirements.txt

Kurulum

pip install -r requirements.txt

Güncelleme

pip install --upgrade -r requirements.txt


5. Paket Yönetimi (pip Core Set)

Paket yükleme

pip install requests

Versiyon sabitleme

pip install requests==2.31.0

Paket kaldırma

pip uninstall requests

Listeleme

pip list

Güncellenebilir paketler

pip list --outdated


6. Windows .env Yönetimi (Konfigürasyon Standardı)

.env dosyası oluşturma

notepad .env

Örnek içerik

DEBUG=True
API_KEY=123456
DB_URL=localhost


Python tarafı (.env kullanımı)

pip install python-dotenv

from dotenv import load_dotenv
import os

load_dotenv()

api_key = os.getenv("API_KEY")
print(api_key)


7. Sistem Komutları ve Process Yönetimi

Process listeleme

tasklist

Python process filtreleme

tasklist | findstr python

Process sonlandırma

taskkill /PID 1234 /F

Python process kill

taskkill /IM python.exe /F


8. Dosya İşlemleri (CLI seviyesinde)

Dosya listesi

dir

Klasör değiştirme

cd project

Dosya silme

del file.txt

Klasör silme

rmdir /S /Q folder


9. Log ve Debug Yönetimi

Dosya log izleme (PowerShell)

Get-Content app.log -Wait

Son satırlar

Get-Content app.log -Tail 100

Filtreleme

Select-String "ERROR" app.log


10. Uzaktan Erişim (Windows → SSH)

SSH bağlantı

ssh user@server_ip

Dosya gönderme

scp app.py user@server_ip:C:\Users\user\

Klasör gönderme

scp -r project user@server_ip:C:\Users\user\


11. Uzaktan Python Çalıştırma

ssh user@server_ip "python app.py"


12. Windows Service Olarak Python (Production)

Windows’ta Linux systemd yerine Windows Service / NSSM / Task Scheduler kullanılır.


NSSM (önerilen production yaklaşım)

nssm install MyPythonApp

Parametre:

  • Path: python.exe
  • Args: C:\app\app.py

Service başlatma

nssm start MyPythonApp

Durdurma

nssm stop MyPythonApp


13. Task Scheduler (Zamanlama)

CLI üzerinden görev oluşturma

schtasks /create /tn "PythonJob" /tr "python C:\app\app.py" /sc daily /st 10:00

Çalıştırma

schtasks /run /tn "PythonJob"

Silme

schtasks /delete /tn "PythonJob" /f


14. Network ve API Test

HTTP çağrısı

curl http://localhost:8000

POST request

curl -X POST http://localhost:8000/api -H "Content-Type: application/json" -d "{\"key\":\"value\"}"


15. Sistem İzleme Komutları

Disk

wmic logicaldisk get size,freespace,caption

CPU / RAM

wmic cpu get loadpercentage
systeminfo


16. Kritik Production Komut Seti (Özet)

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
pip freeze > requirements.txt
python app.py
tasklist | findstr python
taskkill /IM python.exe /F
schtasks /create /tn "Job" /tr "python app.py" /sc daily /st 09:00


Sonuç (Mimari Perspektif)

Windows Python operasyonları 4 ana katmanda düşünülmelidir:

1. Development Layer

  • venv
  • pip
  • requirements.txt

2. Execution Layer

  • python / py launcher
  • process yönetimi

3. Scheduling Layer

  • Task Scheduler
  • batch automation

4. Production Layer

  • NSSM / Windows Service
  • SSH remote execution
  • logging & monitoring