修改Liunx时间和时区
修改时区cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime [haha@localhost]$ date 2017年 11月 02日 星期五 08:04:30 CST [haha@localhost]$ su - root 口令: [root@localhost ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/...
修改时区cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime [haha@localhost]$ date 2017年 11月 02日 星期五 08:04:30 CST [haha@localhost]$ su - root 口令: [root@localhost ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/...
1、安装Apache服务 apt-get install apache2 2、安装php5 apt-get install php5 apt-get install libapache2-mod-php5 /etc/init.d/apache2 restart 3、安装mysql apt-get install mysql-server 4、让apache、php支持mysql apt-get in...
系统需求 系统支持:CentOS 6+/Debian 7+/Ubuntu 12+ 内存要求:≥ 512MB 硬盘要求:至少 5GB 以上的剩余空间 服务器必须配置好 软件源 和 可连接外网 必须具有系统 root 权限 强烈建议使用全新系统来安装 支持组件 支持 PHP 自带几乎...
在系统中,往往需要进行iptables规则的编写,但是当系统重新启动后这些规则则没有了,那么如何解决这样的问题呢? 启动iptables modprobe ip_tables 关闭iptables(关闭命令要比启动复杂) iptalbes -F iptables -X iptables -Z ipta...
系统信息 stat -显示指定文件的详细信息,比ls更详细! date –显示当前日期和时间 cal – 显示当月的日历 uptime – 显示主机运行时间 w – 显示当前在线用户 whoami – 显示自己是哪个用户 finger user – 显示user 的用户信息 uname -a...
最近由于入手了一个小内存的VPS,所以也就开始了折腾linux了,小内存的vps跑起apache来,绝对是小牛拉大车,不卡死才怪,内存绝对占用90.99%以上,nginx还好,不过相对于小内存来说,还是lighttpd来得实在 简单发发lighttpd的安装步骤...
问题描述:通过secureCRT通过ls命令查看目录下中文文件命及中文内容时乱码 系统:通过# cat /etc/issue查看版本 Debian GNU/Linux 6.0 \n \l 说明:我的所有操作均在终端下操作 #su root 首先安装locales #apt-get install locales 然...
PHP 被设置为移除内联块, 这将导致多个核心应用无法访问. 这可能由缓存/加速器导致的, 例如 Zend OPcache 或 eAccelerator.” 这是因为我们还要对php.ini中Opcache的参数进行修改,改成下方的就行(Oneinstack的相关参数被拆分出来了,...
lnmp1.3一键安装包的pathinfo配置,安装的nginx是1.10.1,在设置pathinfo时,一定要装默认的include enable-php.conf;去掉, 它和我们配的.php的条件是一样的,如果不去掉,它永远都会读enable-php.conf配置,不会读我们的pathinfo配...
装新版本的mysql 5.5时,遇到了个问题无法安装,提示系统空间不足。于是我就困惑了,10G的硬盘不会因为挂个wordpress就满了吧?!通过df -lh查看了下硬盘的使用情况,顿时我惊呆了,20G的硬盘竟然使用率100%,究竟是什么占用了这么大...