Server:
Yum install NFS *
Vim/etc/exports/Www/attachment 192.168.0.227 (RW, sync, no_root_sqush)
Start the service
Service rpcbind start
Service NFS start
Client
1. Yum install NFS *
Mount-t nfs 192.168.0.230:/www/attachment
Enable Service
Service rpcbind start
Common Client errors:
1. rpcbind is not enabled on the client
Mount: Wrong FS type, bad option, bad superblock on 192.168.0.230:/www/attachment,Missing codePage or Helper P
configuration
Vi/etc/httpd/conf/httpd.conf #编辑文件
Servertokens OS changes to: Servertokens Prod on 44 lines (does not display the name of the server's operating system when the error page appears)
Serversignature on line 536 is modified to: Serversignature off (no Apache version is displayed on the error page)
Options Indexes followsymlinks on line 331: Options Includes execcgi followsymlinks (allows the
, Posix_getsid,posix_getuid,posix_isatty, Posix_kill,posix_mkfifo,posix_setegid, Posix_seteuid,posix_setgid, Posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname, Posix_uname#在386行 lists the functions that PHP can disable, and if some programs need to use this function, you can delete and cancel the disabled.expose_php = Off #在432行 Suppress the PHP version informationMAGIC_QUOTES_GPC = on #在745行 open MAGIC_QUOTES_GPC to prevent SQL injectionShort_open_tag = on #在229行支
Configuration of TFTP server on Mac and TP-Link firmware upgrade1. TFTP protocol
Simple File Transfer Protocol Trivial File Transfer Protocol (TFTP) is a simple and low-cost File Transfer Protocol based on UDP Protocol, allowing the client to get or put files to a remote host. Because of its high overhead, TFTP is used to guide computers, such as routers without large storage capacity. This is why many rout
The configuration of the TFTP server on Mac and the firmware upgrade for TP-Link, tftptp-link1. TFTP protocol
Simple File Transfer Protocol Trivial File Transfer Protocol (TFTP) is a simple and low-cost File Transfer Protocol based on UDP Protocol, allowing the client to get or put files to a remote host. Because of its high overhead, TFTP is used to guide computers, such as routers without large storage ca
Rsync+inotify configuration of automatic backup server1 Backing up the server ip:192.168.1.106Client ip:192.168.1.1072.#yum-y install rsync xinetd gcc gcc-c++Install both of these services, as well as the C + + compiler (if not in advance, to avoid the compiler when compiling binary files)3. Create a rsyncd.conf on the server side (192.168.1.106)/etc#service ipta
MAGIC_QUOTES_GPC to prevent SQL injectionOpen_basedir =.:/ tmp/#在380行, set to allow access to the current directory (that is, the directory where the php script files) and the/tmp/directory, you can prevent the PHP Trojan Cross station, if the installation program after the problem, you can log off this line, or directly write the program directory path/var/www/ www.osyunwei.com/:/tmp/Ctrl+o #保存Ctrl+x #退出
Test articleCd/var/www #进入默认站点目录Nano-index.php #新建测试文件
Ctrl+o #保存Ctrl+x #退出
an installation article1. Installing NginxYum check-update #更新yum源yum Remove httpd* php* #删除系统自带的软件包yum install Nginx #安装nginx Follow the prompts to enter Y for installation chkconfig nginx on #设置ngin X Boot service Nginx start #启动nginx2. Install MySQLYum install MySQL mysql-server #安装mysql/etc/init.d/mysqld start #启动MySQLchkconfig mysqld on #设为开机启动cp/usr/share/mysql/ MY-MEDIUM.CNF/ETC/MY.CNF #拷贝配置文件etc/init.d/mysqld Restart #重启mysql3. Installing PHP5
" | passwd -- stdin Kaka
Changing passwordfor user Kaka.
Passwd: allauthentication tokens updated successfully.
6. Client Test
Enter the server
[[Email protected] ~] # Ftp 192.168.10.253
Connected to192.168.10.253.
220 (vsftpd 2.0.5)
530 please loginwith user and pass.
530 please loginwith user and pass.
Kerberos_v4rejected as an authentication type
Name (192.168.10.253: Root): ftp
331 please specifythe password.
Password:
230 loginsuccessful.
Remote
new UNIX password: Enter the user's login password Retype new UNIX password: Confirm password passwd: password updated successfullyChanging the user information for dengyxEnter the new value, or press ENTER for the default Full Name []: ENTER Room Number []: press ENTER Work Phone []: enter Home Phone []: enter Other []: enter Is the information correct? [Y/n] after running y, the user group, user, and corresponding user directory are created in the/home/directory. 3. modify/etc/samba/smb. cof
BIND9Once the installation is complete, you can start it and let it start up as soon as the computer starts.
$ systemctl start named
$ systemctl enable named
Configure BINDThis service uses/etc/named.conf as the configuration file.BIND uses some statements like the following in that file:
Options: For global BIND configuration.
Logging: Configure what needs to be logged a
/9.1/data
Second, server configuration:
1. Set Parameters:In PostgreSQL, all configuration parameter names are case insensitive. Each parameter can accept four types of values, which are Boolean, Integer, floating-point, and string. Where the Boolean value can be on, off, TRUE, FALSE, YES, NO, 1, and 0. The configuration
needs to be backed up, for example, in our instance environment, there are three trees that need to be backed up:/www/,/home/web_user1/and/home/web_user2/, then you need to define three modules in the configuration file. Corresponds to three trees respectively.
Global parametersAll parameters before [Modlue] in a file are global parameters, and of course you can define module parameters in the global Parameters section, when the value of this parame
Why choose Ocserv, because Ocserv is a little bit simpler in configuration. Later there is time or a good collation of information on other configurations. Before installing the configuration, popularize the small knowledge firstOcserv IntroductionOfficial Introduction: http://www.infradead.org/ocserv/index.htmlOpenconnect VPN server for short Ocserv, is a gnu/li
One, OpenVPN server-side configuration file details
################################################## Example of a server-side configuration file for OpenVPN 2.0 for multiple clients## This file is used for multi-client ## OpenVPN also supports stand-alone ## This configuration
Apache Server Global Configuration Server Identity Configuration ChapterServer Identity Related directives:ServerNameServerAdminServersignatureServertokensUsecanonicalnameUsecanonicalphysicalportThe serveradmin and Servertokens directives control what information about the server
, $sudo apt-get install xinetd telnetd
2, $sudo vim/etc/inetd.conf and add the following line:
Telnet Stream TCP nowait telnetd/usr/sbin/tcpd/usr/sbin/in.telnetd
3, $sudo vim/etc/xinetd.conf and add the following content:
# Simple configuration file for xinetd
# Some defaults, and include/etc/xinetd.d/
defaults
{
# E that you need a log_type line to is able to use Log_on_success
# and Log_on_failure. The default is the following:
# lo
gateway connected to this machine. For example, the gateway is 10.0.0.1 or 192.168.1.1
Gateway=192.168.1.1
modifying host DNS
vi/etc/resolv.conf
generated by/sbin/dhclient-script
nameserver 8.8.8.8 nameserver
4.4.4.4
Modify hosts
Vi/etc/hosts
127.0.0.1 c65mini.localdomain
#Use DNS domain name server to resolve the name order
Bind hosts
#Does one host have multiple IPs?
Multi
On the wrong name to confirm that it does
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.