
centos lnmp 安装fileinfo
“` cd /root/lnmp1.2/src/php-5.6.9/ext/fileinfo /usr/local/php/bin/phpize ./configure -with-php-config=/usr/local/php/bin/php-config make make install “` /usr/local/php/etc/php.ini 加上 “` extension = fileinfo.so “` iptables -F iptables

centos 计划任务
30 08-18/2 * * * wget http://www.jitapu.me //每天8点30到18点30每2小时访问一次www.jitapu.me主页 30 7,11,14 * * * wget http://www.jitapu.me //每天7.30,11.30,14.30访问一次www.jitapu.me主页

centos开放端口
查看端口: netstat -tln 防火墙设置可用端口: [root@i-uktl7ctb ~]# yum install firewalld firewall-config [root@i-uktl7ctb ~]# systemctl start firewalld [root@i-uktl7ctb ~]# firewall-cmd –permanent –zone=public –add-port=8888/tcp [root@i-u

centOS6 nginx
安装nginx $ yum -y install nginx 安装完成后的默认配置文件路径 默认nginx配置文件: /etc/nginx/nginx.conf 【nginx主要的配置文件】 默认nginx的ssl配置文件: /etc/nginx/conf.d/ssl.conf 【配置SSL证书的,也可以并入到nginx.conf文件里】 默认nginx的虚

【Server】Centos上安装MySQL配置远程访问
# 安装 1. 下载mysql的repo源 “` $ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm “` 2. 安装mysql-community-release-el7-5.noarch.rpm包 “` $ sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm “` 3. 安装mysql “` $

如何在centos 6.x上,优雅的升级python
### python版本升级 – 直接用 – https://ruter.github.io/2015/12/03/Update-python/ 2.6.6 – 2.7.3(pip升级) – 建议直接用python2.7.10的包,兼容gevent相关的库 – http://blog.csdn.net/jcjc918/article/details/11022345 ### fabric部署需要 – superviso

如何用在centos7上用csf防火墙屏蔽来自中国或者俄罗斯的ip(含centos7安装csf详细教程)
第一步安装(参考教程https://www.vultr.com/docs/setup-csf-on-centos-7):Install CSF --------------------------------------------------- Stop and disable firewalld. # systemctl disable fire

apache 多端口配置多站点(centos7)
1.在配置文件httpd.conf(/etc/httpd/conf)中添加监听端口,如:Listen 8008 2.配置虚拟主机,如: ServerName test.com DocumentRoot /home/test/www DirectoryIndex index.php index.html AllowOverride all Require all granted 3.(注意防火墙)在iptables

ubuntu 命令行模式和图形界面切换
1、按ALT+CTRL+F1切换到字符界面(Linux实体机) 如果是VMware虚拟机安装的Linux系统,则切换到字符界面的时候需要以下操作 按下ALT+CTRL+SPACE(空格),ALT+CTRL不松开,再按F1(可能需要配合Fn键)。这样就可以切换到字符界面了。 2、按ALT+CTRL+F7切换到图

Ubuntu+Django+Nginx+uWSGI+Mysql搭建Python Web服务器
Ubuntu+Django+Nginx+uWSGI+Mysql搭建Python Web服务器 前不久为了部署Django项目,在百度上到处找教程,找到的教程因为这样那样的原因,总是失败,可能是因为作者水平比较高吧,有些细节的东西估计没写出来,造成我这种初学者想照着做都做不成。百度不行就用