1 check firewall service statussystemctl status firewalld
2 check firewall status firewall-cmd --state
3 open,restart,close firewalld service
service firewalld start
service firewalld restart
service firewalld stop
4 check firewall rulesfirewall-cmd...
We use chmod command to change permissions of folders and files.
root@pve:~# chmod --help
Usage: chmod … MODE… FILE…
or: chmod … OCTAL-MODE FILE…
or: chmod … --reference=RFILE FILE…
Change the mode of each FILE to MODE.
With --reference, change the mode of each FILE to...
Local source configuration method
Go into /etc/yum.reps.d/ directory and create a file ending with .repo.The content like follow.
name=cdrom #cdrom is notes.it can write casually.
baseurl=file:///mnt/ #local cdrom's path. path of the yum source.
Sometimes when we run ls to list files.There's only black background with white words.We can't see file/dir or executable easyly.
There's a file named .bashrc under user folder.Such like /root/.bashrcWe can modify this file and add a command line.alias ls='ls --color'
Sometimes we need run some commands automatic when system boot up.
We can put the command or script into /etc/rc.locallike:vi /etc/rc.localadd command line into filemount --bind /var/www/html/ /home/ftpuserThis will mount web base dir to ftp base dir automatic when system startup.
like windows has scheduled tasks.linux has crontab.it's a tool for excute tasks on time.
how to install crontab?we can use yum.yum install vixie-cron crontabsthen run itservice crond startwe can add it into autostart when we open the computer.chkconfig --level 345 crond on
how to use...
what is lamp? lamp is linux+apache+mysql+php.They are all open source software and free.
change your centos 7 yum source to a faster source and upgrade the os.for example: 1 backup local yum source. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak2 get a faster...
after I lock ftp user to stop them access system dir.
some user get an error when they login.
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
because if the user is limited to his home directory,the user's home directory can no longer have write privileges.If the...
when I build this site.I need ftp to upload web files to the server space.And the upgrade of wordpress also need ftp.
I found it dangerous if the ftp user can access "/" directory. I want to lock them to each ftp root dir. So that I can protect my linux system dir.
There's a way.