- 博客(16)
- 收藏
- 关注
原创 关闭selihhie
修改配置文件: 将SELINUX=enforcing改为SELINUX=disabled getenforce #查看selinux状态 关闭SELINUX: setenforce 0 #临时关闭(不用重启机器)...
2022-05-27 10:13:22
104
原创 chmod的运用
chmod:修改用户权限 chmod【-R】 xyz档案或目录 选项参数: xyz:就是数字类型的权限属性,为rwx属性数值的相加 -R:进行递归(recursive)的持续变更,亦即连同次目录下的所有档案都会变更 u(user) g(roup) +(加入) r (读取权限) chmod o(other) -(除去) w (写入权限) 档案或目录 ...
2022-05-27 10:06:28
102
原创 在 directorm 目录下新建 个 open 目录下创建 openfile 目录,所有目录权限为 r - Xr -1
在 directorm 目录下新建 个 open 目录下创建 openfile 目录,所有目录权限为 r - Xr -1
2022-05-27 10:04:32
100
原创 将open目录,目录文件删除
列出目录及文件 is etc列出文件详细信息 Is -查看openmkdir test删除 rm open删除文件夹test rm-r test
2022-05-24 10:17:44
125
原创 Inmp 架构搭建 WordPress 开源博客
搭建nginx1、配置nginx源rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.yum search nginx2、安装nginxyum install -y pcre-devel openssl-devel 安装nginx依赖包yum install -y nginx3、实现PHP联动...
2022-05-20 11:30:18
525
原创 在cenos7安装 cacti
快速安装Cacti测试平台:rhel 5.4 cacti版本:0.8.7g运行环境:LAMP环境1.安装依赖包:yum -y install httpd php php-mysql php-snmp mysql mysql-server perl-DBD-MySQL php-pdo net-snmp net-snmp-libs net-snmp-utils net-snmp-devel ruby ruby-devel php-pear2.设置开机启动snmpd,httpd,mysqld.
2022-05-20 11:28:32
107
原创 root@bogon ~]# yum install httpd -y(安装apache,
root@bogon ~]# yum install httpd -y(安装apache,注意要联网)[root@bogon ~]# yum install httpd-manual[ root@bogon ~]# systemctl start httpd[root@bogon ~]# systemctl enable httpd[rootalocalhost ~]# rpm -ga lgrep httpd(查看安装是否完成)[root@localhost ~]# firewall-cmd --
2022-05-20 11:25:58
355
原创 Linux 安装 LAMP 环境,安装配置 Discuz 论坛
一:安装Apache1、查看是否安装过Apache:rpm -qa | grep httpd2、有就卸载httpd:yum remove -y "httpd*"3、重新安装httpd:yum install -y httpd4、查看启动状态:systemctl status httpd5、启动httpd:systemctl start httpd6、添加开机启动:systemctl enable httpd7、设置防火墙tcp80端口:firewall-cmd..
2022-05-20 11:25:06
67
原创 安装zabbix4.0
1. 环境搭建LAMPcat /etc/redhat-release # 查看CentOS版本cat /proc/version #查看存放与内核相关的文件1.1 搭建之前的操作升级系统组件到新的版本(需要联网):yum-y update关闭selinux:vi /etc/selinux/config #将SELINUX=enforcing改为SELINUX=disabled 设置后需要重启才能生效setenforce 0 #临时关闭命令getenforce ...
2022-05-20 11:23:05
62
原创 安装jdk
下载jdk压缩包,将它上传到Xshell里面在目录root下面新建文件夹javatouch java然后进入java里面cd java解压jdk压缩包unzip -o jdk进入vi编辑器vi /etc/profile点击i或a进行编辑在最后加上export JAVA_HOME=/usr/java/jdkexport CLASSPATH=.:$JAVA_HOME/lib/export JRE_HOME=$JAVA_HOME/jreexport PATH=
2022-05-20 11:21:01
47
原创 :在/usr目录中新建一个目录名称为:mytest。并在mytest目录中新建文件net.txt。
1:在/usr目录中新建一个目录名称为:mytest。并在mytest目录中新建文件net.txt。设置文件的属性为文件属主(u)增加执行权限,文件属主同组用户(g)增加写入权限,其他用户(o)删除读权限[root@localhost /]# cd /usr[root@localhost usr]#mkdirmytest[root@localhost usr]# touch net.txt[root@localhost mytest]#chmodu+x net.txt[r...
2022-05-20 11:20:15
1010
原创 【无标题】新建目录director
:在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1、file2、file3. 用vi编辑器分别在三个文件中输入内容。[root@localhost ~]# cd /tmp[root@localhost tmp]# cd direvtor/[root@localhost director]# touch file1.txt file2.txt file3.txt[root@localhost director]# lsfile1.txt file2.t..
2022-05-20 11:19:15
89
原创 linux 系统文件中颜色分别代表什么
红色一一压缩文件或者包文件红色闪烁一一链接的文件有问题绿色一一可执行文件蓝色一一目录浅蓝色一一链接文件(主要是使用 IN 命令建立的文件)灰色一其他文件黄色一一设备文件白色一﹣一般性文件(如文本文件,配置文件,源码文件等)linux...
2022-05-20 11:13:38
369
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人