1. Unzip to the specified directory: such as: tar -xzvf apache-tomcat-7.0.68.tar.gz -C /usr/local/lib Unzip to tomcat to lib directory
2. Modify the folder name: mv apache-tomcat-7.0.68 apache-tomcat-7.0.68-BusiManager Change the folder name to apache-tomcat-7.0.68-BusiManager
jar -xvf game.war Unzip the war project package
3. View files
tail -f xxx.log View the latest update of the log file
FDFS command
###############################
fdfs_trackerd /etc/fdfs/tracker.conf start
fdfs_trackerd /etc/fdfs/tracker.conf restart restart
fdfs_storaged /etc/fdfs/storage.conf
#Out of service
cd /usr/local/lib/fastdfs-5.05/
./stop.sh /etc/fdfs/storage.conf
Upload test file
fdfs_test client.conf upload /mnt/test.png
fdfs_monitor tracker.conf
Add user
useradd dev #Create user
passwd dev #Modify password
Change the password for user dev.
new password:
Re-enter the new password:
passwd: All authentication tokens have been successfully updated.
centos7 SSH port modification
vi /etc/ssh/sshd_config
Remove the # in front of Port and change 22 to a new port such as: 8022
restart systemctl restart sshd
start systemctl start sshd
stop systemctl stop sshd
Copy the folder without prompting whether to overwrite the command: /cp -rf such as:
[root@linuxzgf ~]# cp -rf zongguofeng linuxzgf/
cp: Overwrite "linuxzgf/zongguofeng/user_add.sh"?
[root@linuxzgf ~]# \cp -rf zongguofeng linuxzgf
redis install
1. Copy redis-3.0.7.tar.gz to the specified directory
2. Unzip to the specified directory: tar -xzvf redis-3.0.7.tar.gz -C /usr/local
3. Compile the file:
# cd /usr/local/redis-3.0.7
# make
Fourth, modify the settings redis.conf
cp redis.conf /etc
Modify related properties
#Whether to run in background daemon mode
daemonize yes
#pid file location
pidfile /mnt/sgzl/redis/redis.pid
#Listening port number
port 6379
#Request timeout
timeout 300
#log message level
loglevel debug
#log file information storage location
logfile /mnt/sgzl/redis/logs/redis.log
#Number of open databases
databases 16
# The frequency of saving snapshots, the first * indicates how long, and the third * indicates how many write operations are performed. Snapshots are automatically saved when a certain number of write operations are performed within a certain period of time. Multiple conditions can be set.
save 900 1
save 300 10
save 60 10000
# Whether to use compression
rdbcompression yes
#Data snapshot file name (just the file name, not including the directory)
dbfilename dump.rdb
#Save directory of data snapshot (this is the directory)
dir /mnt/sgzl/redis/db
5. Start redis
redis-server /etc/redis.conf
# redis-cli
127.0.0.1:6379> set name test
OK
127.0.0.1:6379> get name
"test"
Successful installation
Six, nginx
Enable nginx: cd /usr/local/nginx/nginx/sbin/.nginx
Restart nginx: ./nginx -s reload
Stop nginx: ./nginx -s stop