最近在 mac 上用 terminal 启动 python 的时候经常会提示我,端口被占用了,像这样
bash
0 errors found
February 25, 2016 - 18:25:21
Django version 1.6.7, using settings 'green.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Error: That port is already in use.
ps aux | grep python
shell
(kkh)➜ green 继续阅读 »
如何在全新的CentOS系统中完成lnmp等的部署。
more
关闭密码登录及修改ssh端口
vi /etc/ssh/sshd_config中PasswordAuthentication项改为no,ssh端口改为25???
service sshd restart
vi /etc/sysconfig/iptables
添加-A INPUT -p tcp -m state --state NEW -m tcp --dport 25??? -j ACCEPT
service iptables restart重启防火墙
主域名博客
参考 https://oneinstack.com/install/ 完成lnmp的安装
建立虚拟继续阅读 »