cd /”文件夹路径”
cd ..
cd ../../
cd /
cd -
pwd
Ls /
Ls
Ls /路径
mkdir 文件夹名称
mkdir 文件夹名称 –p /root/123
touch 123.txt
touch /root/123.txt
rm –rf /tmp/123.mp4
ls –l /tmp/
ls –l /tmp/123.txt
-rw-rw-r--
chmod 777 /tmp/123.txt
mv /tmp/123.txt /tmp/123.mp4
:q!
yum install nginx -y
systemctl start nginx
netstat -tunlp | grep "nginx"
ps -ef | grep "nginx"
[root@ceph yum.repos.d]# ps -ef | grep "nginx"
root 3176 1 0 14:40 ? 00:00:00 nginx: master process /usr/sbin/nginx
nginx 3178 3176 0 14:40 ? 00:00:00 nginx: worker process
root 3186 2984 0 14:44 pts/0 00:00:00 grep --color=auto nginx
[root@ceph yum.repos.d]# netstat -tunlp | grep "nginx"
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3176/nginx: master
tcp6 0 0 :::80 :::* LISTEN 3176/nginx: master
#启动
systemctl start nginx
停止
systemctl stop nginx
[root@ceph yum.repos.d]# curl -I https://www.taobao.com/
HTTP/1.1 200 OK
Server: Tengine
[root@ceph yum.repos.d]# curl -I 10.211.55.25
HTTP/1.1 200 OK
Server: nginx/1.20.1
[root@ceph yum.repos.d]# rpm -ql nginx
[root@ceph yum.repos.d]# rpm -ql nginx | grep "index"
/usr/share/nginx/html/index.html
yum install vim -y
vim /usr/share/nginx/html/index.html
Iptables –F
systemctl stop firewalld
systemctl disable firewalld
getenforce
shutdown -r now
getenforce
systemctl stop nginx
yum remove nginx -y
yum install httpd
systemctl start httpd
netstat -tunlp | grep httpd
yum install mariadb-server mariadb -y
systemctl start mariadb
netstat -tunlp | grep "mysql"
mysql -uroot -p
Show databases;
use mysql;
show tables;
select user,password,host from user;
exit
yum install -y zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel libtool-ltdl-devel pcre pcre-devel apr apr-devel zlib-devel gcc make
cd /data/soft
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar zxf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local/libiconv
Make
./stdio.h:1010:1: 错误: ‘gets’未声明(不在函数内)
make[2]: *** [progname.o] 错误 1
make[2]:正在离开目录 `/home/lmos/libiconv-1.14/srclib'
make[1]: *** [all] 错误 2
make[1]:正在离开目录 `/home/lmos/libiconv-1.14/srclib'
make: *** [all] 错误 2
cd srclib
sed -i -e '/gets is a security/d' ./stdio.in.h
#######再次make
Make
make install
yum install php php-fpm php-mysql -y
vim /etc/httpd/conf/httpd.conf
/DocumentRoot
:set nu
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.html
想说啥说啥
cd /home
mkdir Discuz
cd Discuz
wget https://gitee.com/Discuz/DiscuzX/attach_files/1165135/download
yum install unzip -y
unzip download
[root@ceph discuz]# cp -r upload/* /var/www/html/
cp: overwrite ‘/var/www/html/index.php’? y
[root@ceph discuz]# chmod -R 777 /var/www/html/*