目錄html
apt-get update
apt-get upgrade
python
apt-get install git
若要使用git clone 須要ssh-keygen -t rsa -C "your email@mail.com"
拷貝.ssh目錄中的pub內容到github的SSH keys中mysql
新建uwsgi.ini文件, 並配置linux
分爲**源碼**安裝與**壓縮包**穩定版安裝,二者的文件安裝目錄不一樣 `/etc/nginx/與/usr/local/nginx`
新建 uc_nginx.conf文, 並配置nginx
http://www.cnblogs.com/piscesLoveCc/p/5794926.htmlgit
https://www.jianshu.com/p/7cb1a824333egithub
https://blog.csdn.net/bestallen/article/details/52837609sql
如今讓咱們使用 [Let's Encrypt](https://letsencrypt.org/)提供的一個很好的HTTPS證書來提升咱們的應用程序的安全性。 設置HTTPS從未如此簡單。更好的是,咱們如今能夠免費得到它。他們提供了一個名爲**certbot**的解決方案 ,負責爲咱們安裝和更新證書。這很是簡單: ```shell sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install python-certbot-nginx ``` 如今安裝證書: ```shell sudo certbot --nginx ``` 而後就行了,證書和私鑰位置在 ```shell /etc/letsencrypt/live/www.example.com/privkey.pem ``` 只需按照提示操做便可。當被問及: ```tex Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. ``` 選擇`2`將全部HTTP流量重定向到HTTPS。 證書是 90 天的,運行 ``` $ sudo certbot renew --dry-run ``` Certbot 會幫你啓動一個定時任務,在證書過時時自動更新 PS:雲服務器上的安全組規則裏記得把 443 端口開了。
查看端口占用:netstat -ntpl 查看進程:ps aux | grep nginx //查看nginx進程 查看端口占用狀況:lsof -i:80 //查看80端口占用狀況 殺死進程:kill -9 3274 //3274爲進程PID Nginx安裝:apt-get install nginx Nginx啓動、中止和重啓命令 /etc/init.d/nginx start /etc/init.d/nginx stop /etc/init.d/nginx reload Nginx壓縮包安裝版: Nginx啓動、中止和重啓命令 /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx -s stop /usr/local/nginx/sbin/nginx -s reload