CentOS6.5 python2.6升级到2.7.11
1、查看当前python的版本 python -V Python 2.6.6 2、下载Python-2.7.11 wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz 3、解压并进入目录 tar zxvf Python-2.7.11.tgz cd Python-2.7.11 4、编译安装 ./conf...linux创建用户并设置密码,禁止root远程登录
先使用root账户登录ssh useradd yourname 创建用户 passwd yourname 给用户设置密码 chmod 755 filename 给文件或路径设置权限 禁止root用户远程登录 修改/etc/ssh/sshd_config文件 将其中的PermitRootLogin改成no 然后重新启动ssh服务/etc/init.d/sshd restart标签: Linux
linux下修改ssh默认端口
vi /etc/ssh/sshd_config #注意不是ssh_config 找到#port 22 这里去掉#,后面的22改成你要的端口即可 保存退出vi /etc/init.d/sshd restart #重启sshd,即可 ubuntu系统是 sudo service ssh restartubuntu系统下安装shadowsocks
sudo apt-get install openssl sudo apt-get install libssl-dev 下载shadowsocks源码 ./configure --prefix=/安装位置就行 新建一个...标签: vps
清理squid缓存
切换root账户 /usr/local/squid/sbin/squid -k shutdown 不知道squid目录,可以使用ps -ef | grep squid查看 删除/usr/local/squid/data目录下所有的文件和目录 /usr/local/squid/sbin/squid -z /usr/local/squid/sbin/squidLinux中的Interrupted system call错误
最近公司的一个项目,上线时候遇到了一些问题,服务跑一段时间后连接不上。 发现报了Interrupted system call这个错误引起的。 查了下资料,大致原因是系统繁忙处理不过来导致的。 根据网上搜索到的资料 https://github.com/JustinTulloss/zeromq.node/issues/171 http://comment...天气
分类
标签
存档
- 2024年3月(1)
- 2024年2月(1)
- 2023年8月(1)
- 2023年7月(1)
- 2023年5月(1)
- 2022年9月(1)
- 2022年8月(1)
- 2022年1月(2)
- 2021年10月(1)
- 2021年7月(1)
- 2020年9月(1)
- 2020年8月(1)
- 2020年7月(1)
- 2020年6月(2)
- 2020年5月(1)
- 2019年10月(1)
- 2019年9月(2)
- 2019年7月(1)
- 2019年1月(4)
- 2018年12月(1)
- 2018年11月(1)
- 2018年10月(5)
- 2018年8月(2)
- 2018年7月(5)
- 2018年6月(2)
- 2018年4月(1)
- 2018年2月(1)
- 2017年12月(2)
- 2017年11月(1)
- 2017年10月(4)
- 2017年9月(3)
- 2017年8月(2)
- 2017年5月(2)
- 2017年4月(7)
- 2017年2月(1)
- 2016年12月(1)
- 2016年11月(2)
- 2016年10月(3)
- 2016年6月(2)
- 2016年3月(1)
- 2016年1月(2)
- 2015年12月(3)
- 2015年11月(3)
- 2015年10月(1)
- 2015年9月(1)
- 2015年8月(2)
- 2015年7月(2)
- 2015年5月(1)
- 2015年4月(1)
- 2015年2月(1)
- 2015年1月(1)
- 2014年12月(4)
- 2014年11月(1)
- 2014年10月(1)
- 2014年8月(4)
- 2014年7月(2)
- 2014年6月(1)
- 2014年2月(2)
- 2014年1月(2)
- 2013年12月(26)
- 2013年10月(2)