centos7
it0_soft
这个作者很懒,什么都没留下…
展开
-
【转】centos7重启网卡报Job for network.service failed because...错误
今天上虚拟机,突然发现不能联网了,主机相互都ping不通,找了好几个办法,最后发现这个命令还挺管用的,记录下来。解决:[root@mina0 hadoop]# systemctl stop NetworkManager[root@mina0 hadoop]# systemctl disable NetworkManager然后:重启网卡即可:[root@mina0 hadoop]# systemctl restart network[root@mina0 hadoop]# ifconfig原创 2020-09-21 11:19:36 · 2109 阅读 · 0 评论 -
centos7 安装后,意外出现Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]
安装完成centos7后出现如下提示:Initial setup of CentOS Linux 7 (core)1) [x] Creat user 2) [!] License information(no user will be created) (license not accepted)Please make your choice from above [‘q‘ to qu...转载 2019-02-19 11:33:27 · 3583 阅读 · 0 评论 -
centos7.x设置nginx开机自启动
第一步:进入到/lib/systemd/system/目录[root@iz2z init.d]# cd /lib/systemd/system/第二步:创建nginx.service文件,并编辑# vim nginx.service代码如下:[Unit]Description=nginx serviceAfter=network.target [Servic...转载 2019-03-21 15:24:58 · 95 阅读 · 0 评论 -
设置php-fpm开机自启动(centos7.x)
在linux下php的启动依靠php-fpm,每次开关机都要手动去启动,太麻烦了,这次我直接把它加入服务启动。首先进入服务目录# cd /etc/init.d然后再在系统服务目录新建启动文件# vim /lib/systemd/system/php-fpm.service写入以下内容(路径改成自己的)[Unit]Description=php-fpmAfter=n...原创 2019-03-21 15:37:40 · 3983 阅读 · 0 评论 -
CentOs7下开启了pdo_myql没起作用解决办法
修改了php.ini给php增加pdo_mysql扩展没有找到该扩展,简直折磨死人了,下面来解决办法1、找到php.ini的位置2、查找PHP(5.6.30)里面的扩展目录3、打开/usr/local/src/php-5.6.30/ext/pdo_mysql执行/usr/local/php/bin/phpize (若不是该路径,也可以查找 find / -name phpi...原创 2019-03-21 15:46:44 · 890 阅读 · 0 评论 -
nginx访问php的时候提示File not found
一般情况下安装完nginx后,php的运行目录就在html目录下,但是配置好php访问的时候又提示File not found,实在是匪夷所思,打开nginx.conf配置文件看了下,安装的时候默认的是:location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000;...原创 2019-03-18 14:43:57 · 2918 阅读 · 3 评论 -
CentOs7安装mysql教程
首先需要安装mariadb-server ~]# yum install -y mariadb-server 启动服务 ~]#systemctlstartmariadb.service 添加到开机启动 ~]#systemctlenablemariadb.service下载并安装MySQL官方的YumRepository[root@localh...原创 2019-03-18 17:02:29 · 174 阅读 · 0 评论