使用Yum安装必要软件yuminstallnginxphpphp-fpmphp-mysqlmysql-server-y将各软件设置为开机启动chkconfignginxonchkconfigmysqldonchkconfigphp-fpmon配置Nginxvim/etc/nginx/conf.d/default.conf按字母“I”键或“Insert”键切换至编辑模式,将已有内容全部清除,复制并粘
分类:
Web程序 时间:
2018-08-30 22:43:28
阅读次数:
288
1、centos 检查服务是否开机自启 (ntpd是原生的服务,mysql是注册的服务) 参考:1.http://man.linuxde.net/systemctl ...
分类:
其他好文 时间:
2018-08-26 11:51:18
阅读次数:
158
一、yum服务器端配置1.安装FTP软件#yum install vsftpd #service vsftpd start#chkconfig --add vsftpd#chkconfig vsftpd on2. 把centos6.2的光盘挂载到服务器上,之后拷贝DVD中所有文件到本机ftp目录下# ...
分类:
其他好文 时间:
2018-08-25 00:46:03
阅读次数:
166
启动VSFTP服务器A:cenos下运行:yum install vsftpdB. 登录Linux主机后,运行命令:”service vsftpd start”C. 要让FTP每次开机自动启动,运行命令: “chkconfig --level 35 vsftpd on” 2、设置FTP权限A. 编辑 ...
分类:
系统相关 时间:
2018-08-24 19:34:33
阅读次数:
219
1、首先需要编写需要启动的脚本,并将脚本放在 /etc/init.d/目录下 如:cs.sh 2、修改权限 3、chkconfig --add cs.sh 4、 chkconfig cs.sh on 启动容器时 docker run -idt ***/*** /bin/bash cs1.sh cs2 ...
分类:
其他好文 时间:
2018-08-24 19:20:25
阅读次数:
2180
一、前提 二、yum源配置和相关依赖包 1.添加epel源和PUIAS_6_computational源 1 # yum -y install epel-release 1 # yum -y install epel-release 1 # yum -y install epel-release 1 ...
分类:
其他好文 时间:
2018-08-24 02:00:32
阅读次数:
176
过滤出来需要的开机自启动项:chkconfig --list|grep 3:on|grep -v "crond|sshd|network|rsyslog|sysstat" 关闭不需要的自启动项:chkconfig --list|grep 3:on|grep -v "crond|sshd|networ ...
分类:
系统相关 时间:
2018-08-23 14:11:39
阅读次数:
247
1.查看iptables状态 service iptables status 2.开启/关闭iptables service iptables start service iptables stop 3.查看iptables是否开机启动 chkconfig iptables --list 4.设置i ...
分类:
其他好文 时间:
2018-08-20 15:39:06
阅读次数:
118
一、systemctl知识简介 从CentOS7 Linux开始,系统里的网络服务启动已经从传统的service改成了systemctl(一个systemd工具,主要负责控制systemd系统和服务管理器。),管理开机自启动的命令也从chkconfig改为了systemctl,由systemctl一 ...
分类:
其他好文 时间:
2018-08-19 22:42:50
阅读次数:
377